[ENG-440, ENG-366] Header format improvements & crypto refactor #5
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: crypto | |
on: | |
pull_request: | |
paths: | |
- '.github/workflows/crypto.yml' | |
- 'crates/crypto/**' | |
- 'Cargo.*' | |
push: | |
branches: main | |
workflow_dispatch: | |
defaults: | |
run: | |
working-directory: crates/crypto | |
permissions: | |
contents: read | |
env: | |
RUSTFLAGS: '-Dwarnings' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
strategy: | |
matrix: | |
include: | |
- target: i686-unknown-linux-gnu | |
platform: ubuntu-latest | |
deps: sudo apt update && sudo apt install gcc-multilib | |
rust: stable | |
- target: x86_64-unknown-linux-gnu | |
platform: ubuntu-latest | |
rust: 1.67.0 | |
- target: x86_64-unknown-linux-gnu | |
platform: ubuntu-latest | |
rust: stable | |
- target: x86_64-apple-darwin | |
platform: macos-latest | |
rust: stable | |
- target: x86_64-pc-windows-msvc | |
platform: windows-latest | |
rust: stable | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- uses: actions/checkout@v3 | |
- run: ${{ matrix.deps }} | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: ${{ matrix.rust }} | |
targets: ${{ matrix.target }} | |
- name: Install `nextest` | |
uses: taiki-e/install-action@nextest | |
- run: cargo nextest run --target ${{ matrix.target }} --run-ignored all --all-features --release | |
test-arm: | |
strategy: | |
matrix: | |
include: | |
- target: aarch64-unknown-linux-gnu | |
rust: stable | |
- target: armv7-unknown-linux-gnueabi | |
rust: stable | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: ${{ matrix.rust }} | |
targets: ${{ matrix.target }} | |
- name: Install cross-compilation tools | |
uses: taiki-e/setup-cross-toolchain-action@v1 | |
with: | |
target: ${{ matrix.target }} | |
- run: cargo test --target ${{ matrix.target }} --run-ignored all --all-features --release | |
check-features: | |
strategy: | |
matrix: | |
include: | |
- target: x86_64-unknown-linux-gnu | |
platform: ubuntu-latest | |
rust: stable | |
- target: x86_64-apple-darwin | |
platform: macos-latest | |
rust: stable | |
- target: x86_64-pc-windows-msvc | |
platform: windows-latest | |
rust: stable | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- uses: actions/checkout@v3 | |
- run: ${{ matrix.deps }} | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: ${{ matrix.rust }} | |
targets: ${{ matrix.target }} | |
- name: Install `cargo-hack` | |
uses: taiki-e/install-action@cargo-hack | |
- run: cargo hack check --feature-powerset --target ${{ matrix.target }} |