]> git.lizzy.rs Git - rust.git/blob - .github/workflows/rustc.yml
5faa8f0540451b848506fadd139fc6333429b230
[rust.git] / .github / workflows / rustc.yml
1 name: Various rustc tests
2
3 on:
4   - push
5
6 jobs:
7   bootstrap_rustc:
8     runs-on: ubuntu-latest
9
10     steps:
11     - uses: actions/checkout@v3
12
13     - name: Cache cargo target dir
14       uses: actions/cache@v3
15       with:
16         path: build/cg_clif
17         key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('rust-toolchain', '**/Cargo.lock') }}
18
19     - name: Use sparse cargo registry
20       run: |
21         cat >> ~/.cargo/config.toml <<EOF
22         [unstable]
23         sparse-registry = true
24         EOF
25
26     - name: Prepare dependencies
27       run: ./y.rs prepare
28
29     - name: Test
30       run: ./scripts/test_bootstrap.sh
31   rustc_test_suite:
32     runs-on: ubuntu-latest
33
34     steps:
35     - uses: actions/checkout@v3
36
37     - name: Cache cargo target dir
38       uses: actions/cache@v3
39       with:
40         path: build/cg_clif
41         key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('rust-toolchain', '**/Cargo.lock') }}
42
43     - name: Use sparse cargo registry
44       run: |
45         cat >> ~/.cargo/config.toml <<EOF
46         [unstable]
47         sparse-registry = true
48         EOF
49
50     - name: Prepare dependencies
51       run: ./y.rs prepare
52
53     - name: Test
54       run: ./scripts/test_rustc_tests.sh