Skip to content

Commit

Permalink
Fix to use houseabsolute/actions-rust-cross to release build
Browse files Browse the repository at this point in the history
  • Loading branch information
lusingander committed Jan 12, 2025
1 parent b4e954d commit 10cbd97
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ jobs:
targets:
- target: x86_64-unknown-linux-gnu
os: ubuntu-latest
- target: x86_64-unknown-linux-musl
os: ubuntu-latest
- target: aarch64-unknown-linux-gnu
os: ubuntu-latest
- target: aarch64-unknown-linux-musl
os: ubuntu-latest
- target: x86_64-apple-darwin
os: macos-14
- target: aarch64-apple-darwin
Expand All @@ -26,7 +32,11 @@ jobs:
- name: Setup
run: rustup target add ${{ matrix.targets.target }}
- name: Build
run: cargo build --release --target ${{ matrix.targets.target }}
uses: houseabsolute/actions-rust-cross@v1.0.0
with:
command: build
target: ${{ matrix.targets.target }}
args: "--release"
- name: Set release version
run: echo "RELEASE_VERSION=${GITHUB_REF_NAME#v}" >> ${GITHUB_ENV}
- name: Archive
Expand Down

0 comments on commit 10cbd97

Please sign in to comment.