ci: Enable ci tests on arm64 #365
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: attestation-agent crypto tests | |
on: | |
push: | |
branches: | |
- 'main' | |
paths: | |
- 'attestation-agent/deps/crypto/**' | |
- '.github/workflows/aa_crypto.yml' | |
pull_request: | |
paths: | |
- 'attestation-agent/deps/crypto/**' | |
- '.github/workflows/aa_crypto.yml' | |
create: | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
crypto_ci: | |
if: github.event_name != 'push' | |
name: Check | |
defaults: | |
run: | |
working-directory: ./attestation-agent | |
strategy: | |
fail-fast: false | |
matrix: | |
instance: | |
- ubuntu-24.04 | |
- ubuntu-24.04-arm | |
suites: | |
- rust-crypto | |
- openssl | |
rust: | |
- stable | |
# TODO: remove include and exclude when the following issue is resolved | |
# https://github.com/rust-lang/rust/issues/135867 | |
- 1.82.0 | |
exclude: | |
- instance: ubuntu-24.04 | |
rust: 1.82.0 | |
- instance: ubuntu-24.04-arm | |
rust: stable | |
runs-on: ${{ matrix.instance }} | |
steps: | |
- name: Code checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- name: Install Rust toolchain (${{ matrix.rust }}) | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: ${{ matrix.rust }} | |
override: true | |
components: rustfmt, clippy | |
- name: Run rust fmt check | |
uses: actions-rs/cargo@v1 | |
with: | |
command: fmt | |
args: -p crypto -- --check | |
- name: Run rust lint check (${{ matrix.suites }}) | |
uses: actions-rs/cargo@v1 | |
with: | |
command: clippy | |
# We are getting error in generated code due to derive_partial_eq_without_eq check, so ignore it for now | |
args: -p crypto --no-default-features --features ${{ matrix.suites }} -- -D warnings -A clippy::derive_partial_eq_without_eq | |
- name: Run cargo test (${{ matrix.suites }}) | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: -p crypto --no-default-features --features ${{ matrix.suites }} |