]> git.lizzy.rs Git - rust.git/blob - .github/workflows/rustc.yml
Merge pull request #1338 from bjorn3/build_system_rework5
[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 registry and index
14       uses: actions/cache@v3
15       with:
16         path: |
17             ~/.cargo/registry
18             ~/.cargo/git
19         key: ${{ runner.os }}-cargo-registry-and-index-${{ hashFiles('**/Cargo.lock') }}
20
21     - name: Cache cargo target dir
22       uses: actions/cache@v3
23       with:
24         path: build/cg_clif
25         key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('rust-toolchain', '**/Cargo.lock') }}
26
27     - name: Prepare dependencies
28       run: |
29         git config --global user.email "user@example.com"
30         git config --global user.name "User"
31         ./y.rs prepare
32
33     - name: Test
34       run: ./scripts/test_bootstrap.sh
35   rustc_test_suite:
36     runs-on: ubuntu-latest
37
38     steps:
39     - uses: actions/checkout@v3
40
41     - name: Cache cargo registry and index
42       uses: actions/cache@v3
43       with:
44         path: |
45             ~/.cargo/registry
46             ~/.cargo/git
47         key: ${{ runner.os }}-cargo-registry-and-index-${{ hashFiles('**/Cargo.lock') }}
48
49     - name: Cache cargo target dir
50       uses: actions/cache@v3
51       with:
52         path: build/cg_clif
53         key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('rust-toolchain', '**/Cargo.lock') }}
54
55     - name: Prepare dependencies
56       run: |
57         git config --global user.email "user@example.com"
58         git config --global user.name "User"
59         ./y.rs prepare
60
61     - name: Test
62       run: ./scripts/test_rustc_tests.sh