|
| 1 | +name: ed448-goldilocks |
| 2 | + |
| 3 | +on: |
| 4 | + pull_request: |
| 5 | + paths: |
| 6 | + - ".github/workflows/ed448-goldilocks.yml" |
| 7 | + - "ed448-goldilocks/**" |
| 8 | + - "Cargo.*" |
| 9 | + push: |
| 10 | + branches: master |
| 11 | + |
| 12 | +defaults: |
| 13 | + run: |
| 14 | + working-directory: ed448-goldilocks |
| 15 | + |
| 16 | +env: |
| 17 | + CARGO_INCREMENTAL: 0 |
| 18 | + RUSTFLAGS: "-Dwarnings" |
| 19 | + RUSTDOCFLAGS: "-Dwarnings" |
| 20 | + |
| 21 | +jobs: |
| 22 | + build: |
| 23 | + runs-on: ubuntu-latest |
| 24 | + strategy: |
| 25 | + matrix: |
| 26 | + rust: |
| 27 | + - 1.85.0 # MSRV |
| 28 | + - stable |
| 29 | + target: |
| 30 | + - thumbv7em-none-eabi |
| 31 | + - wasm32-unknown-unknown |
| 32 | + steps: |
| 33 | + - uses: actions/checkout@v4 |
| 34 | + - uses: dtolnay/rust-toolchain@master |
| 35 | + with: |
| 36 | + toolchain: ${{ matrix.rust }} |
| 37 | + targets: ${{ matrix.target }} |
| 38 | + - run: cargo build --target ${{ matrix.target }} --release --no-default-features |
| 39 | + - run: cargo build --target ${{ matrix.target }} --release --no-default-features --features alloc |
| 40 | + - run: cargo build --target ${{ matrix.target }} --release --no-default-features --features pkcs8 |
| 41 | + - run: cargo build --target ${{ matrix.target }} --release --no-default-features --features signing |
| 42 | + - run: cargo build --target ${{ matrix.target }} --release --no-default-features --features serde |
| 43 | + - run: cargo build --target ${{ matrix.target }} --release --no-default-features --features zeroize |
| 44 | + - run: cargo build --target ${{ matrix.target }} --release --no-default-features --features alloc,pkcs8,signing,serde,zeroize |
| 45 | + |
| 46 | + benches: |
| 47 | + runs-on: ubuntu-latest |
| 48 | + strategy: |
| 49 | + matrix: |
| 50 | + rust: |
| 51 | + - 1.85.0 # MSRV |
| 52 | + - stable |
| 53 | + steps: |
| 54 | + - uses: actions/checkout@v4 |
| 55 | + - uses: dtolnay/rust-toolchain@master |
| 56 | + with: |
| 57 | + toolchain: ${{ matrix.rust }} |
| 58 | + - run: cargo build --all-features --benches |
| 59 | + |
| 60 | + test: |
| 61 | + runs-on: ubuntu-latest |
| 62 | + strategy: |
| 63 | + matrix: |
| 64 | + include: |
| 65 | + # 32-bit Linux |
| 66 | + - target: i686-unknown-linux-gnu |
| 67 | + rust: 1.85.0 # MSRV |
| 68 | + deps: sudo apt update && sudo apt install gcc-multilib |
| 69 | + - target: i686-unknown-linux-gnu |
| 70 | + rust: stable |
| 71 | + deps: sudo apt update && sudo apt install gcc-multilib |
| 72 | + |
| 73 | + # 64-bit Linux |
| 74 | + - target: x86_64-unknown-linux-gnu |
| 75 | + rust: 1.85.0 # MSRV |
| 76 | + - target: x86_64-unknown-linux-gnu |
| 77 | + rust: stable |
| 78 | + |
| 79 | + steps: |
| 80 | + - uses: actions/checkout@v4 |
| 81 | + - uses: dtolnay/rust-toolchain@master |
| 82 | + with: |
| 83 | + toolchain: ${{ matrix.rust }} |
| 84 | + targets: ${{ matrix.target }} |
| 85 | + - run: ${{ matrix.deps }} |
| 86 | + - run: cargo check --target ${{ matrix.target }} --all-features |
| 87 | + - run: cargo test --release --target ${{ matrix.target }} --no-default-features |
| 88 | + - run: cargo test --release --target ${{ matrix.target }} |
| 89 | + - run: cargo test --release --target ${{ matrix.target }} --all-features |
| 90 | + |
| 91 | + cross: |
| 92 | + strategy: |
| 93 | + matrix: |
| 94 | + include: |
| 95 | + # ARM32 |
| 96 | + - target: armv7-unknown-linux-gnueabihf |
| 97 | + rust: 1.85.0 # MSRV (cross) |
| 98 | + - target: armv7-unknown-linux-gnueabihf |
| 99 | + rust: stable |
| 100 | + |
| 101 | + # ARM64 |
| 102 | + - target: aarch64-unknown-linux-gnu |
| 103 | + rust: 1.85.0 # MSRV (cross) |
| 104 | + - target: aarch64-unknown-linux-gnu |
| 105 | + rust: stable |
| 106 | + |
| 107 | + # PPC32 |
| 108 | + - target: powerpc-unknown-linux-gnu |
| 109 | + rust: 1.85.0 # MSRV (cross) |
| 110 | + - target: powerpc-unknown-linux-gnu |
| 111 | + rust: stable |
| 112 | + |
| 113 | + runs-on: ubuntu-latest |
| 114 | + steps: |
| 115 | + - uses: actions/checkout@v4 |
| 116 | + - run: ${{ matrix.deps }} |
| 117 | + - uses: dtolnay/rust-toolchain@master |
| 118 | + with: |
| 119 | + toolchain: ${{ matrix.rust }} |
| 120 | + targets: ${{ matrix.target }} |
| 121 | + - uses: RustCrypto/actions/cross-install@master |
| 122 | + - run: cross test --release --target ${{ matrix.target }} --all-features |
| 123 | + |
| 124 | + doc: |
| 125 | + runs-on: ubuntu-latest |
| 126 | + steps: |
| 127 | + - uses: actions/checkout@v4 |
| 128 | + - uses: RustCrypto/actions/cargo-cache@master |
| 129 | + - uses: dtolnay/rust-toolchain@master |
| 130 | + with: |
| 131 | + toolchain: stable |
| 132 | + - run: cargo doc --all-features |
0 commit comments