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