summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorClement Tsang <34804052+ClementTsang@users.noreply.github.com>2022-05-25 17:06:38 -0400
committerGitHub <noreply@github.com>2022-05-25 17:06:38 -0400
commit42909dba3573dd1cdd30d986c3227e0996edb7b0 (patch)
tree8d7b3692d8e1f71249275954ed9fb1936f865c67 /.github
parentd03231c2e7bdb3beacb9e2f0bc6aa1c53d16ca61 (diff)
ci: fix missing aarch64 build (#738)
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yml24
1 files changed, 20 insertions, 4 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 617ab39c..85956127 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -3,6 +3,7 @@
# CI pipeline based on:
# - https://github.com/heim-rs/heim/blob/master/.github/workflows/ci.yml
# - https://github.com/BurntSushi/ripgrep/blob/master/.github/workflows/ci.yml
+# - https://www.reillywood.com/blog/rust-faster-ci/
#
# CI pipeline should do:
# - cargo fmt on supported platforms
@@ -38,7 +39,7 @@ jobs:
}
- {
os: "ubuntu-latest",
- target: "armv7-unknown-linux-gnueabihf",
+ target: "aarch64-unknown-linux-gnu",
cross: true,
}
- { os: "macOS-latest", target: "x86_64-apple-darwin", cross: false }
@@ -74,6 +75,7 @@ jobs:
toolchain: stable
override: true
components: rustfmt, clippy
+ target: ${{ matrix.triple.target }}
- name: Enable Rust cache
if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
@@ -85,19 +87,33 @@ jobs:
- name: Build tests
if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
- run: cargo test --no-run --locked ${{ matrix.features }}
+ uses: actions-rs/cargo@v1
+ with:
+ command: test
+ args: --no-run --locked ${{ matrix.features }}
+ use-cross: ${{ matrix.triple.cross }}
env:
RUST_BACKTRACE: full
- name: Run tests
if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
- run: cargo test --no-fail-fast ${{ matrix.features }} -- --nocapture --quiet
+ uses: actions-rs/cargo@v1
+ with:
+ command: test
+ args: --no-fail-fast ${{ matrix.features }} -- --nocapture --quiet
+ use-cross: ${{ matrix.triple.cross }}
env:
RUST_BACKTRACE: full
- name: Run clippy
if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
- run: cargo clippy ${{ matrix.features }} --all-targets --workspace -- -D warnings
+ uses: actions-rs/cargo@v1
+ with:
+ command: clippy
+ args: ${{ matrix.features }} --all-targets --workspace -- -D warnings
+ use-cross: ${{ matrix.triple.cross }}
+ env:
+ RUST_BACKTRACE: full
# Run cargo check on all other platforms
other_check: