]> git.lizzy.rs Git - rust.git/blob - .github/workflows/bootstrap_rustc.yml
Sync from rust c9228570668803e3e6402770d55f23a12c9ae686
[rust.git] / .github / workflows / bootstrap_rustc.yml
1 name: Bootstrap rustc using cg_clif
2
3 on:
4   - push
5
6 jobs:
7   bootstrap_rustc:
8     runs-on: ubuntu-latest
9
10     steps:
11     - uses: actions/checkout@v2
12
13     - name: Cache cargo installed crates
14       uses: actions/cache@v2
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@v2
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@v2
29       with:
30         path: target
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         rustup self update
38         ./prepare.sh
39
40     - name: Test
41       run: |
42         # Enable backtraces for easier debugging
43         export RUST_BACKTRACE=1
44
45         ./scripts/test_bootstrap.sh