Skip to content

Commit

Permalink
Retry to use main branch of cross to rebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
owent committed Jul 6, 2023
1 parent 4b03d2e commit b7ee2f1
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,16 @@ jobs:
command: build
args: --target ${{ matrix.target }} --release --all-features
- name: Cross Release build
uses: actions-rs/cargo@v1
if: ${{ matrix.target != 'x86_64-unknown-linux-gnu' }}
with:
use-cross: true
command: build
args: --target ${{ matrix.target }} --release --all-features
shell: bash
run: |
NEED_RETRY=0
cargo install cross xargo
cross build --target ${{ matrix.target }} --release --all-features || NEED_RETRY=1
if [[ $NEED_RETRY -ne 0 ]]; then
cargo install cross --git https://github.com/cross-rs/cross
fi
cross build --target ${{ matrix.target }} --release --all-features
- name: Debug build & test
uses: actions-rs/cargo@v1
if: ${{ matrix.target == 'x86_64-unknown-linux-gnu' }}
Expand Down

0 comments on commit b7ee2f1

Please sign in to comment.