Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "bb-cli"
version = "0.4.0"
version = "0.4.1"
edition = "2024"

[dependencies]
Expand Down