Skip to content

Commit

Permalink
chore: use cross
Browse files Browse the repository at this point in the history
  • Loading branch information
egoist committed Jan 19, 2025
1 parent 873a60d commit 97c4a6d
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,21 @@ jobs:
with:
target: ${{ matrix.target }}

- name: Install Cross
if: matrix.os == 'ubuntu-latest'
run: cargo install cross --git https://github.com/cross-rs/cross

- name: Run Tests
run: cargo test

- name: Build release
- name: Build release (non-Linux)
if: matrix.os != 'ubuntu-latest'
run: cargo build --target ${{ matrix.target }} --release

- name: Build release (Linux)
if: matrix.os == 'ubuntu-latest'
run: cross build --target ${{ matrix.target }} --release

- name: Copy and rename utility
run: cp target/${{ matrix.target }}/release/${{ matrix.output }} ${{ matrix.output }}

Expand Down

0 comments on commit 97c4a6d

Please sign in to comment.