Skip to content

only run TEE tests if hardware is present #8

only run TEE tests if hardware is present

only run TEE tests if hardware is present #8

Workflow file for this run

name: Test
on:
push:
branches: [main]
pull_request:
branches: [main]
merge_group:
types: [checks_requested]
workflow_dispatch:
permissions: read-all
env:
CARGO_TERM_COLOR: always
jobs:
cargo-deny:
runs-on: ubuntu-latest
strategy:
matrix:
checks:
- advisories
- bans sources
# Prevent sudden announcement of a new advisory from failing ci:
continue-on-error: ${{ matrix.checks == 'advisories' }}
steps:
- name: Check out repo
uses: actions/checkout@v6
- name: Install cargo-deny
uses: EmbarkStudios/cargo-deny-action@v2
with:
command: check ${{ matrix.checks }}
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@v6
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- name: Cache dependencies
uses: Swatinem/rust-cache@v2
- name: Run linters
run: ./bin/lint
run-tests:
name: Run tests
needs: lint
runs-on: ${{ matrix.runs-on }}
strategy:
fail-fast: false
matrix:
runs-on:
- macos-15-intel # mac-x86
- macos-latest # mac-arm
- ubuntu-latest # linux-x86
- ubuntu-24.04-arm # linux-arm
steps:
- name: Check out repo
uses: actions/checkout@v6
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Install nextest
uses: taiki-e/install-action@nextest
- name: Cache dependencies
uses: Swatinem/rust-cache@v2
- name: Run non-TEE tests
shell: bash
run: ./bin/test