Monorepo ed/x/curve25519 #581
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: All: Rust | ||
on: | ||
push: | ||
branches: [ '**' ] | ||
pull_request: | ||
branches: [ '**' ] | ||
env: | ||
CARGO_TERM_COLOR: always | ||
RUSTFLAGS: '-D warnings' | ||
jobs: | ||
test-stable: | ||
name: All: Test 32/64 bit stable | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
include: | ||
# 32-bit target | ||
- target: i686-unknown-linux-gnu | ||
deps: sudo apt update && sudo apt install gcc-multilib | ||
# 64-bit target | ||
- target: x86_64-unknown-linux-gnu | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: dtolnay/rust-toolchain@stable | ||
- run: rustup target add ${{ matrix.target }} | ||
- run: ${{ matrix.deps }} | ||
- run: cargo test --target ${{ matrix.target }} --no-default-features | ||
- run: cargo test --target ${{ matrix.target }} | ||
- run: cargo test --target ${{ matrix.target }} --all-features | ||
build-nostd: | ||
name: Build on no_std target (thumbv7em-none-eabi) | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: stable | ||
targets: thumbv7em-none-eabi | ||
- uses: taiki-e/install-action@cargo-hack | ||
# No default features build | ||
- run: cargo build --target thumbv7em-none-eabi --release --no-default-features | ||
- run: cargo hack build --target thumbv7em-none-eabi --release --each-feature --exclude-features default,std | ||
test-cross: | ||
name: All: cross Test | ||
strategy: | ||
matrix: | ||
include: | ||
# ARM32 | ||
- target: armv7-unknown-linux-gnueabihf | ||
rust: stable | ||
# ARM64 | ||
- target: aarch64-unknown-linux-gnu | ||
rust: stable | ||
# PPC32 | ||
- target: powerpc-unknown-linux-gnu | ||
rust: stable | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- run: ${{ matrix.deps }} | ||
- uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: ${{ matrix.rust }} | ||
targets: ${{ matrix.target }} | ||
- uses: RustCrypto/actions/cross-install@master | ||
- run: cross test --release --target ${{ matrix.target }} | ||
test-nightly: | ||
name: All: nightly Test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: dtolnay/rust-toolchain@nightly | ||
- run: cargo test | ||
clippy: | ||
name: All: Check that clippy is happy | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: dtolnay/rust-toolchain@nightly | ||
with: | ||
components: clippy | ||
- run: cargo clippy --target x86_64-unknown-linux-gnu | ||
rustfmt: | ||
name: All: Check formatting | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: dtolnay/rust-toolchain@stable | ||
with: | ||
components: rustfmt | ||
- run: cargo fmt --all -- --check | ||
doc: | ||
name: All: Make Docs | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: dtolnay/rust-toolchain@stable | ||
with: | ||
toolchain: stable | ||
- run: cargo doc --all-features |