|
1 | 1 | name: Check
|
2 | 2 | on: push
|
3 | 3 | jobs:
|
4 |
| - x86_64: |
5 |
| - name: x86_64 tests |
| 4 | + x86_64-stable: |
| 5 | + name: x86_64 stable |
6 | 6 | runs-on: ubuntu-latest
|
7 | 7 | steps:
|
8 | 8 | - uses: actions/checkout@v2
|
|
15 | 15 | with:
|
16 | 16 | command: fmt
|
17 | 17 | args: --all -- --check
|
| 18 | + - name: Build all targets |
| 19 | + uses: actions-rs/cargo@v1 |
| 20 | + with: |
| 21 | + command: build |
| 22 | + args: --workspace --all-targets |
| 23 | + - name: Run Clippy linter |
| 24 | + uses: actions-rs/cargo@v1 |
| 25 | + with: |
| 26 | + command: clippy |
| 27 | + args: --workspace --all-targets -- -D warnings |
| 28 | + - name: Run tests |
| 29 | + uses: actions-rs/cargo@v1 |
| 30 | + with: |
| 31 | + command: test |
| 32 | + args: --workspace |
| 33 | + x86_64-nightly: |
| 34 | + name: x86_64 nightly |
| 35 | + runs-on: ubuntu-latest |
| 36 | + steps: |
| 37 | + - uses: actions/checkout@v2 |
| 38 | + - name: Install nightly toolchain |
| 39 | + uses: actions-rs/toolchain@v1 |
| 40 | + with: |
| 41 | + toolchain: nightly |
| 42 | + override: true |
| 43 | + components: clippy, rustfmt |
| 44 | + - name: Run rustfmt |
| 45 | + uses: actions-rs/cargo@v1 |
| 46 | + with: |
| 47 | + command: fmt |
| 48 | + args: --all -- --check |
18 | 49 | - name: Build all targets
|
19 | 50 | uses: actions-rs/cargo@v1
|
20 | 51 | with:
|
|
30 | 61 | with:
|
31 | 62 | command: test
|
32 | 63 | args: --workspace --all-features
|
| 64 | + x86_64-sanitizer: |
| 65 | + name: x86_64 sanitizer |
| 66 | + runs-on: ubuntu-latest |
| 67 | + steps: |
| 68 | + - uses: actions/checkout@v2 |
33 | 69 | - name: Install nightly toolchain
|
34 | 70 | uses: actions-rs/toolchain@v1
|
35 | 71 | with:
|
|
45 | 81 | with:
|
46 | 82 | command: test
|
47 | 83 | args: --workspace --all-features --target x86_64-unknown-linux-gnu -Zbuild-std
|
48 |
| - wasm32: |
49 |
| - name: wasm32 tests |
| 84 | + wasm32-stable: |
| 85 | + name: wasm32 stable |
50 | 86 | runs-on: ubuntu-latest
|
51 | 87 | steps:
|
52 | 88 | - uses: actions/checkout@v2
|
@@ -80,6 +116,34 @@ jobs:
|
80 | 116 | with:
|
81 | 117 | command: wasi
|
82 | 118 | args: test --workspace --all-features
|
| 119 | + aarch64-nightly: |
| 120 | + name: aarch64 nightly |
| 121 | + runs-on: ubuntu-latest |
| 122 | + steps: |
| 123 | + - uses: actions/checkout@v2 |
| 124 | + - name: Install cross-compilation toolchain |
| 125 | + run: | |
| 126 | + sudo apt update |
| 127 | + sudo apt install gcc-aarch64-linux-gnu |
| 128 | + - name: Install nightly toolchain |
| 129 | + uses: actions-rs/toolchain@v1 |
| 130 | + with: |
| 131 | + toolchain: nightly |
| 132 | + override: true |
| 133 | + components: clippy, rustfmt |
| 134 | + target: aarch64-unknown-linux-gnu |
| 135 | + - name: Build all targets |
| 136 | + uses: actions-rs/cargo@v1 |
| 137 | + with: |
| 138 | + command: build |
| 139 | + args: --target aarch64-unknown-linux-gnu --workspace --all-targets --all-features |
| 140 | + env: |
| 141 | + RUSTFLAGS: -C linker=aarch64-linux-gnu-gcc |
| 142 | + - name: Run Clippy linter |
| 143 | + uses: actions-rs/cargo@v1 |
| 144 | + with: |
| 145 | + command: clippy |
| 146 | + args: --target aarch64-unknown-linux-gnu --workspace --all-targets --all-features -- -D warnings |
83 | 147 | bench:
|
84 | 148 | name: Benchmarks
|
85 | 149 | runs-on: ubuntu-latest
|
|
0 commit comments