|
1 | 1 | on: [push, pull_request]
|
2 | 2 |
|
3 |
| -name: Continuous Integration |
| 3 | +name: Continuous integration |
4 | 4 |
|
5 | 5 | jobs:
|
6 | 6 | Stable:
|
|
17 | 17 | - name: Running test script
|
18 | 18 | env:
|
19 | 19 | DO_LINT: true
|
| 20 | + DO_DOCS: true |
| 21 | + DO_FEATURE_MATRIX: true |
20 | 22 | run: ./contrib/test.sh
|
21 | 23 |
|
22 | 24 | Beta:
|
|
44 | 46 | uses: dtolnay/rust-toolchain@nightly
|
45 | 47 | - name: Running test script
|
46 | 48 | env:
|
| 49 | + DO_DOCSRS: true |
47 | 50 | DO_FMT: true
|
48 | 51 | run: ./contrib/test.sh
|
49 | 52 |
|
|
58 | 61 | - name: Checkout Toolchain
|
59 | 62 |
|
60 | 63 | - name: Running test script
|
| 64 | + env: |
| 65 | + DO_FEATURE_MATRIX: true |
61 | 66 | run: ./contrib/test.sh
|
62 | 67 |
|
63 | 68 | EmbeddedWithAlloc:
|
|
92 | 97 | uses: dtolnay/rust-toolchain@stable
|
93 | 98 | - name: Run
|
94 | 99 | run: cd embedded/no-allocator && cargo rustc -- -C link-arg=-nostartfiles
|
| 100 | + |
| 101 | + Arch32bit: |
| 102 | + name: Test 32-bit version |
| 103 | + runs-on: ubuntu-latest |
| 104 | + steps: |
| 105 | + - name: Checkout Crate |
| 106 | + uses: actions/checkout@v3 |
| 107 | + - name: Checkout Toolchain |
| 108 | + uses: dtolnay/rust-toolchain@stable |
| 109 | + - name: Add architecture i386 |
| 110 | + run: sudo dpkg --add-architecture i386 |
| 111 | + - name: Install i686 gcc |
| 112 | + run: sudo apt-get update -y && sudo apt-get install -y gcc-multilib |
| 113 | + - name: Install target |
| 114 | + run: rustup target add i686-unknown-linux-gnu |
| 115 | + - name: Run tests on i686 |
| 116 | + run: cargo test --target i686-unknown-linux-gnu |
| 117 | + |
| 118 | + Cross: |
| 119 | + name: Cross test |
| 120 | + if: ${{ !github.event.act }} |
| 121 | + runs-on: ubuntu-latest |
| 122 | + steps: |
| 123 | + - name: Checkout Crate |
| 124 | + uses: actions/checkout@v3 |
| 125 | + - name: Checkout Toolchain |
| 126 | + uses: dtolnay/rust-toolchain@stable |
| 127 | + - name: Install target |
| 128 | + run: rustup target add s390x-unknown-linux-gnu |
| 129 | + - name: install cross |
| 130 | + run: cargo install cross --locked |
| 131 | + - name: run cross test |
| 132 | + run: cross test --target s390x-unknown-linux-gnu |
0 commit comments