|
56 | 56 | os: ubuntu-latest |
57 | 57 | - tuple: aarch64-unknown-linux-gnu |
58 | 58 | os: ubuntu-latest |
| 59 | + - tuple: riscv32gc-unknown-linux-gnu |
| 60 | + os: ubuntu-latest |
59 | 61 | - tuple: riscv64gc-unknown-linux-gnu |
60 | 62 | os: ubuntu-latest |
61 | 63 | - tuple: powerpc-unknown-linux-gnu |
@@ -147,6 +149,11 @@ jobs: |
147 | 149 | tuple: powerpc64le-unknown-linux-gnu |
148 | 150 | os: ubuntu-latest |
149 | 151 | test_everything: true |
| 152 | + - target: |
| 153 | + tuple: riscv32gc-unknown-linux-gnu |
| 154 | + os: ubuntu-latest |
| 155 | + test_everything: true |
| 156 | + build_std: true |
150 | 157 | - target: |
151 | 158 | tuple: riscv64gc-unknown-linux-gnu |
152 | 159 | os: ubuntu-latest |
@@ -192,13 +199,18 @@ jobs: |
192 | 199 |
|
193 | 200 | steps: |
194 | 201 | - uses: actions/checkout@v4 |
195 | | - with: |
196 | | - submodules: recursive |
| 202 | + |
197 | 203 | - name: Install Rust |
198 | 204 | run: | |
199 | 205 | rustup update nightly --no-self-update |
200 | 206 | rustup default nightly |
201 | 207 | - run: rustup target add ${{ matrix.target.tuple }} |
| 208 | + if: matrix.build_std == '' |
| 209 | + - run: | |
| 210 | + rustup component add rust-src |
| 211 | + echo "CARGO_UNSTABLE_BUILD_STD=std" >> $GITHUB_ENV |
| 212 | + if: matrix.build_std != '' |
| 213 | +
|
202 | 214 | - run: cargo generate-lockfile |
203 | 215 |
|
204 | 216 | # Configure some env vars based on matrix configuration |
@@ -227,7 +239,7 @@ jobs: |
227 | 239 | # ... while Linux goes to `run-docker.sh` |
228 | 240 | - run: ./ci/run-docker.sh ${{ matrix.target.tuple }} |
229 | 241 | shell: bash |
230 | | - if: "matrix.target.os == 'ubuntu-latest' && !startsWith(matrix.target.tuple, 'thumb')" |
| 242 | + if: matrix.target.os == 'ubuntu-latest' && !startsWith(matrix.target.tuple, 'thumb') |
231 | 243 | env: |
232 | 244 | TARGET: ${{ matrix.target.tuple }} |
233 | 245 |
|
|
0 commit comments