ci: release for all platforms #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
pull_request: | |
push: | |
workflow_dispatch: | |
inputs: | |
component: | |
description: The software component to release | |
required: true | |
type: choice | |
options: | |
- identity-server | |
jobs: | |
build: | |
name: Build the code for each platform | |
runs-on: windows-2022 | |
steps: | |
- uses: actions/[email protected] | |
- uses: mlugg/[email protected] | |
with: | |
version: 0.13.0 | |
- name: Cache cargo dependencies | |
uses: Swatinem/[email protected] | |
# - name: Install mingw | |
# run: sudo apt-get install -y mingw-w64 | |
- name: Install cargo-zigbuild | |
run: cargo install --locked [email protected] | |
- name: Perform | |
run: cargo zigbuild --target x86_64-unknown-linux-musl aarch64-unknown-linux-musl aarch64-apple-darwin x86_64-pc-windows-gnu | |