Skip to content

Commit

Permalink
Special handling of riscv64gc
Browse files Browse the repository at this point in the history
  • Loading branch information
justsmth committed Feb 12, 2024
1 parent 530a210 commit 9b9b0ea
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/cross.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ jobs:
strategy:
fail-fast: false
matrix:
rust: [ stable ]
os: [ ubuntu-latest ]
target:
- arm-unknown-linux-gnueabihf
Expand All @@ -43,12 +42,12 @@ jobs:
- uses: dtolnay/rust-toolchain@master
id: toolchain
with:
toolchain: ${{ matrix.rust }}
toolchain: ${{ (matrix.target == 'riscv64gc-unknown-linux-gnu' && '1.72.1') || 'stable' }}
target: ${{ matrix.target }}
- name: Set Rust toolchain override
run: rustup override set ${{ steps.toolchain.outputs.name }}
- name: Install cross
run: cargo install cross --git https://github.com/cross-rs/cross
run: cargo install cross ${{ (matrix.target == 'riscv64gc-unknown-linux-gnu' && '--locked') || '' }} --git https://github.com/cross-rs/cross
- name: Cross-compilation
if: ${{ matrix.target == 'aarch64-unknown-linux-gnu' || matrix.target == 'i686-unknown-linux-gnu' }}
working-directory: ./aws-lc-rs
Expand Down

0 comments on commit 9b9b0ea

Please sign in to comment.