Skip to content

Commit

Permalink
use cross instead for linux
Browse files Browse the repository at this point in the history
  • Loading branch information
bck01215 committed Jun 20, 2024
1 parent 57aae12 commit 22ba221
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 @@ -67,14 +67,24 @@ jobs:
override: true

- name: Output package versions
run: cargo version ; rustc --version ; gcc --version ; g++ --version
run: |
cargo version ; rustc --version ; gcc --version ; g++ --version
- name: Install cross
if: contains(matrix.arch, 'linux')
run: cargo install cross --git https://github.com/cross-rs/cross

- name: Print rustc cfg
run: rustc -C target-cpu=native --print cfg

- name: Run cargo build
if: contains(matrix.arch, 'linux') == false
run: cargo build --release --target ${{ matrix.arch }}

- name: Run cross build
if: contains(matrix.arch, 'linux')
run: cross build --release --target ${{ matrix.arch }}

- name: Calculate checksum and rename binary
if: contains(matrix.arch, 'windows') == false
shell: bash
Expand Down

0 comments on commit 22ba221

Please sign in to comment.