2021-03-15 08:49:57 -05:00
|
|
|
name: Various rustc tests
|
|
|
|
|
|
|
|
on:
|
|
|
|
- push
|
|
|
|
|
2024-04-02 10:17:56 -05:00
|
|
|
permissions: {}
|
|
|
|
|
2021-03-15 08:49:57 -05:00
|
|
|
jobs:
|
|
|
|
bootstrap_rustc:
|
|
|
|
runs-on: ubuntu-latest
|
2023-04-09 08:01:10 -05:00
|
|
|
timeout-minutes: 60
|
2021-03-15 08:49:57 -05:00
|
|
|
|
|
|
|
steps:
|
2024-01-26 05:06:55 -06:00
|
|
|
- uses: actions/checkout@v4
|
2021-03-15 08:49:57 -05:00
|
|
|
|
2023-11-12 10:59:15 -06:00
|
|
|
- name: CPU features
|
|
|
|
run: cat /proc/cpuinfo
|
|
|
|
|
2021-03-15 08:49:57 -05:00
|
|
|
- name: Cache cargo target dir
|
2024-01-26 05:06:55 -06:00
|
|
|
uses: actions/cache@v4
|
2021-03-15 08:49:57 -05:00
|
|
|
with:
|
2022-12-01 09:49:34 -06:00
|
|
|
path: build/cg_clif
|
2024-05-11 12:19:46 -05:00
|
|
|
key: ${{ runner.os }}-rustc-test-cargo-build-target-${{ hashFiles('rust-toolchain', 'Cargo.lock') }}
|
2021-03-15 08:49:57 -05:00
|
|
|
|
|
|
|
- name: Prepare dependencies
|
2023-02-15 12:23:11 -06:00
|
|
|
run: ./y.sh prepare
|
2021-03-15 08:49:57 -05:00
|
|
|
|
|
|
|
- name: Test
|
2022-12-15 08:12:46 -06:00
|
|
|
run: ./scripts/test_bootstrap.sh
|
2023-04-09 08:01:10 -05:00
|
|
|
|
|
|
|
|
2021-03-15 08:49:57 -05:00
|
|
|
rustc_test_suite:
|
|
|
|
runs-on: ubuntu-latest
|
2023-04-09 08:01:10 -05:00
|
|
|
timeout-minutes: 60
|
2021-03-15 08:49:57 -05:00
|
|
|
|
|
|
|
steps:
|
2024-01-26 05:06:55 -06:00
|
|
|
- uses: actions/checkout@v4
|
2021-03-15 08:49:57 -05:00
|
|
|
|
2023-11-12 10:59:15 -06:00
|
|
|
- name: CPU features
|
|
|
|
run: cat /proc/cpuinfo
|
|
|
|
|
2021-03-15 08:49:57 -05:00
|
|
|
- name: Cache cargo target dir
|
2024-01-26 05:06:55 -06:00
|
|
|
uses: actions/cache@v4
|
2021-03-15 08:49:57 -05:00
|
|
|
with:
|
2022-12-01 09:49:34 -06:00
|
|
|
path: build/cg_clif
|
2024-05-11 12:19:46 -05:00
|
|
|
key: ${{ runner.os }}-rustc-test-cargo-build-target-${{ hashFiles('rust-toolchain', 'Cargo.lock') }}
|
2021-03-15 08:49:57 -05:00
|
|
|
|
2023-12-31 05:14:50 -06:00
|
|
|
- name: Install ripgrep
|
|
|
|
run: |
|
|
|
|
sudo apt update
|
|
|
|
sudo apt install -y ripgrep
|
|
|
|
|
2021-03-15 08:49:57 -05:00
|
|
|
- name: Prepare dependencies
|
2023-02-15 12:23:11 -06:00
|
|
|
run: ./y.sh prepare
|
2021-03-15 08:49:57 -05:00
|
|
|
|
|
|
|
- name: Test
|
2022-12-15 08:12:46 -06:00
|
|
|
run: ./scripts/test_rustc_tests.sh
|