From 3ada97db7095d5e576b03bf84d14d9383876d36a Mon Sep 17 00:00:00 2001 From: Tom Maffia Date: Fri, 12 Dec 2025 23:32:49 -0500 Subject: [PATCH] ci: Explicitly specify build targets in release workflow and bump package version. --- .github/workflows/release.yml | 13 +++++++++---- Cargo.lock | 2 +- Cargo.toml | 2 +- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2731dd8..6cad672 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,12 +16,15 @@ jobs: matrix: include: - os: macos-latest + target: aarch64-apple-darwin artifact_name: bb-darwin-arm64 asset_name: bb-darwin-arm64 - - os: macos-13 + - os: macos-latest + target: x86_64-apple-darwin artifact_name: bb-darwin-amd64 asset_name: bb-darwin-amd64 - os: windows-latest + target: x86_64-pc-windows-msvc artifact_name: bb-windows-amd64.exe asset_name: bb-windows-amd64.exe @@ -31,17 +34,19 @@ jobs: - name: Set up Rust uses: dtolnay/rust-toolchain@stable + with: + targets: ${{ matrix.target }} - name: Build - run: cargo build --release + run: cargo build --release --target ${{ matrix.target }} - name: Rename binary (Unix) if: runner.os != 'Windows' - run: mv target/release/bb ${{ matrix.artifact_name }} + run: mv target/${{ matrix.target }}/release/bb ${{ matrix.artifact_name }} - name: Rename binary (Windows) if: runner.os == 'Windows' - run: move target/release/bb.exe ${{ matrix.artifact_name }} + run: move target/${{ matrix.target }}/release/bb.exe ${{ matrix.artifact_name }} - name: Upload Release Asset uses: softprops/action-gh-release@v1 diff --git a/Cargo.lock b/Cargo.lock index 1ed0fbc..f60090d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -89,7 +89,7 @@ checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6" [[package]] name = "bb-cli" -version = "0.4.0" +version = "0.4.1" dependencies = [ "anyhow", "clap", diff --git a/Cargo.toml b/Cargo.toml index 786ef42..8a617d8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bb-cli" -version = "0.4.0" +version = "0.4.1" edition = "2024" [dependencies]