|
| 1 | +name: whirlpool |
| 2 | + |
| 3 | +on: |
| 4 | + pull_request: |
| 5 | + paths: |
| 6 | + - "whirlpool/**" |
| 7 | + - "Cargo.*" |
| 8 | + push: |
| 9 | + branches: master |
| 10 | + |
| 11 | +defaults: |
| 12 | + run: |
| 13 | + working-directory: whirlpool |
| 14 | + |
| 15 | +env: |
| 16 | + CARGO_INCREMENTAL: 0 |
| 17 | + RUSTFLAGS: "-Dwarnings" |
| 18 | + |
| 19 | +jobs: |
| 20 | + # Linux tests |
| 21 | + linux: |
| 22 | + strategy: |
| 23 | + matrix: |
| 24 | + include: |
| 25 | + # 32-bit Linux/x86 |
| 26 | + - target: i686-unknown-linux-gnu |
| 27 | + toolchain: 1.43.0 # MSRV |
| 28 | + deps: sudo apt install gcc-multilib |
| 29 | + - target: i686-unknown-linux-gnu |
| 30 | + toolchain: stable |
| 31 | + deps: sudo apt install gcc-multilib |
| 32 | + |
| 33 | + # 64-bit Linux/x86_64 |
| 34 | + - target: x86_64-unknown-linux-gnu |
| 35 | + toolchain: 1.43.0 # MSRV |
| 36 | + deps: true |
| 37 | + - target: x86_64-unknown-linux-gnu |
| 38 | + toolchain: stable |
| 39 | + deps: true |
| 40 | + |
| 41 | + runs-on: ubuntu-latest |
| 42 | + steps: |
| 43 | + - uses: actions/checkout@v1 |
| 44 | + - uses: actions-rs/toolchain@v1 |
| 45 | + with: |
| 46 | + profile: minimal |
| 47 | + toolchain: ${{ matrix.toolchain }} |
| 48 | + target: ${{ matrix.target }} |
| 49 | + override: true |
| 50 | + - run: ${{ matrix.deps }} |
| 51 | + - run: cargo test --target ${{ matrix.target }} --release |
| 52 | + |
| 53 | + # macOS tests |
| 54 | + macos: |
| 55 | + strategy: |
| 56 | + matrix: |
| 57 | + toolchain: |
| 58 | + - 1.43.0 # MSRV |
| 59 | + - stable |
| 60 | + |
| 61 | + runs-on: macos-latest |
| 62 | + steps: |
| 63 | + - uses: actions/checkout@v1 |
| 64 | + - uses: actions-rs/toolchain@v1 |
| 65 | + with: |
| 66 | + profile: minimal |
| 67 | + toolchain: ${{ matrix.toolchain }} |
| 68 | + target: x86_64-apple-darwin |
| 69 | + override: true |
| 70 | + - run: cargo test --release |
| 71 | + |
| 72 | + # Windows tests |
| 73 | + windows: |
| 74 | + strategy: |
| 75 | + matrix: |
| 76 | + include: |
| 77 | + # 64-bit Windows (GNU) |
| 78 | + - target: x86_64-pc-windows-gnu |
| 79 | + toolchain: 1.43.0 # MSRV |
| 80 | + - target: x86_64-pc-windows-gnu |
| 81 | + toolchain: stable |
| 82 | + |
| 83 | + runs-on: windows-latest |
| 84 | + steps: |
| 85 | + - uses: actions/checkout@v1 |
| 86 | + - uses: actions-rs/toolchain@v1 |
| 87 | + with: |
| 88 | + profile: minimal |
| 89 | + toolchain: ${{ matrix.toolchain }} |
| 90 | + target: ${{ matrix.target }} |
| 91 | + override: true |
| 92 | + - uses: msys2/setup-msys2@v2 |
| 93 | + - run: cargo test --target ${{ matrix.target }} --release |
0 commit comments