bump to v1.1.0 #10
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: Build everything | |
# TODO: Build docker container? | |
on: | |
push: | |
paths: ['**.rs', 'Cargo.toml', 'Cargo.lock', '.github/workflows/build-everything.yml'] | |
pull_request: | |
paths: ['**.rs', 'Cargo.toml', 'Cargo.lock', '.github/workflows/build-everything.yml'] | |
workflow_dispatch: | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build_everything: | |
runs-on: windows-latest | |
steps: | |
- name: Prepare env | |
shell: bash | |
run: echo "GITHUB_SHA_SHORT=${GITHUB_SHA::7}" >> $GITHUB_ENV | |
- uses: actions/checkout@v4 | |
- name: Install cargo-binstall | |
uses: cargo-bins/[email protected] | |
- name: Install the cargo bins we use... | |
shell: pwsh | |
run: | | |
cargo binstall -y cargo-zigbuild | |
- name: Setup Zig | |
uses: mlugg/setup-zig@v1 | |
with: | |
version: '0.13.0' | |
- name: Install Rust toolchains | |
run: | | |
rustup target add x86_64-unknown-linux-musl | |
- name: Build for Windows | |
run: | | |
cargo build --release | |
- name: Upload Windows build | |
uses: actions/upload-artifact@v4 | |
with: | |
name: bcdl-${{ github.head_ref || github.ref_name }}-${{ env.GITHUB_SHA_SHORT }}-windows | |
path: target/release/bcdl.exe | |
- name: Build for Linux | |
run: | | |
cargo zigbuild --release --target x86_64-unknown-linux-musl | |
- name: Upload Linux build | |
uses: actions/upload-artifact@v4 | |
with: | |
name: bcdl-${{ github.head_ref || github.ref_name }}-${{ env.GITHUB_SHA_SHORT }}-linux | |
path: target/x86_64-unknown-linux-musl/release/bcdl |