Skip to content

Commit

Permalink
build: attempt to fix ci on aarch64 2
Browse files Browse the repository at this point in the history
  • Loading branch information
mahor1221 committed Jul 9, 2024
1 parent 6e7bbc1 commit ba89864
Showing 1 changed file with 20 additions and 9 deletions.
29 changes: 20 additions & 9 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,14 +112,19 @@ jobs:
with:
targets: ${{ matrix.target }}

- name: Install prerequisites
shell: bash
run: |
case ${{ matrix.target }} in
aarch64-unknown-linux-*)
sudo apt-get -y update
sudo apt-get -y install gcc-aarch64-linux-gnu;;
esac
- if: startsWith(matrix.os, 'aarch64-')
uses: taiki-e/install-action@v2
with:
tool: cross

# - name: Install prerequisites
# shell: bash
# run: |
# case ${{ matrix.target }} in
# aarch64-unknown-linux-gnu)
# sudo apt-get -y update
# sudo apt-get -y install gcc-aarch64-linux-gnu;;
# esac

- name: Check build
if: success() || failure()
Expand All @@ -134,7 +139,13 @@ jobs:
- name: Check tests
if: success()
id: cargo-test
run: cargo test --profile=ci --locked --target ${{ matrix.target }}
run: |
case ${{ matrix.target }} in
aarch64-unknown-linux-*)
cross test --profile=ci --locked --target ${{ matrix.target }};;
*)
cargo test --profile=ci --locked --target ${{ matrix.target }};;
esac
- name: Check documents
if: success()
Expand Down

0 comments on commit ba89864

Please sign in to comment.