]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_codegen_cranelift/.github/workflows/bootstrap_rustc.yml
Rollup merge of #80011 - Stupremee:stabilize-peekable-next-if, r=dtolnay
[rust.git] / compiler / rustc_codegen_cranelift / .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         ./prepare.sh
38
39     - name: Test
40       run: |
41         # Enable backtraces for easier debugging
42         export RUST_BACKTRACE=1
43
44         ./scripts/test_bootstrap.sh