2021-03-29 03:45:09 -05:00
|
|
|
name: Various rustc tests
|
|
|
|
|
|
|
|
on:
|
|
|
|
- push
|
|
|
|
|
2024-04-05 11:20:23 -05:00
|
|
|
permissions: {}
|
|
|
|
|
2021-03-29 03:45:09 -05:00
|
|
|
jobs:
|
|
|
|
bootstrap_rustc:
|
|
|
|
runs-on: ubuntu-latest
|
2023-04-29 07:00:43 -05:00
|
|
|
timeout-minutes: 60
|
2021-03-29 03:45:09 -05:00
|
|
|
|
|
|
|
steps:
|
2024-01-26 12:33:45 -06:00
|
|
|
- uses: actions/checkout@v4
|
2021-03-29 03:45:09 -05:00
|
|
|
|
2023-11-16 15:15:07 -06:00
|
|
|
- name: CPU features
|
|
|
|
run: cat /proc/cpuinfo
|
|
|
|
|
2021-03-29 03:45:09 -05:00
|
|
|
- name: Cache cargo target dir
|
2024-01-26 12:33:45 -06:00
|
|
|
uses: actions/cache@v4
|
2021-03-29 03:45:09 -05:00
|
|
|
with:
|
2022-12-14 12:30:46 -06:00
|
|
|
path: build/cg_clif
|
2021-03-29 03:45:09 -05:00
|
|
|
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('rust-toolchain', '**/Cargo.lock') }}
|
|
|
|
|
2023-01-24 11:56:42 -06:00
|
|
|
- name: Prepare dependencies
|
2023-06-15 12:56:01 -05:00
|
|
|
run: ./y.sh prepare
|
2021-03-29 03:45:09 -05:00
|
|
|
|
2023-01-24 11:56:42 -06:00
|
|
|
- name: Test
|
|
|
|
run: ./scripts/test_bootstrap.sh
|
2023-04-29 07:00:43 -05:00
|
|
|
|
|
|
|
|
2021-03-29 03:45:09 -05:00
|
|
|
rustc_test_suite:
|
|
|
|
runs-on: ubuntu-latest
|
2023-04-29 07:00:43 -05:00
|
|
|
timeout-minutes: 60
|
2021-03-29 03:45:09 -05:00
|
|
|
|
|
|
|
steps:
|
2024-01-26 12:33:45 -06:00
|
|
|
- uses: actions/checkout@v4
|
2021-03-29 03:45:09 -05:00
|
|
|
|
2023-11-16 15:15:07 -06:00
|
|
|
- name: CPU features
|
|
|
|
run: cat /proc/cpuinfo
|
|
|
|
|
2021-03-29 03:45:09 -05:00
|
|
|
- name: Cache cargo target dir
|
2024-01-26 12:33:45 -06:00
|
|
|
uses: actions/cache@v4
|
2021-03-29 03:45:09 -05:00
|
|
|
with:
|
2022-12-14 12:30:46 -06:00
|
|
|
path: build/cg_clif
|
2021-03-29 03:45:09 -05:00
|
|
|
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('rust-toolchain', '**/Cargo.lock') }}
|
|
|
|
|
2023-12-31 07:29:53 -06:00
|
|
|
- name: Install ripgrep
|
|
|
|
run: |
|
|
|
|
sudo apt update
|
|
|
|
sudo apt install -y ripgrep
|
|
|
|
|
2023-01-24 11:56:42 -06:00
|
|
|
- name: Prepare dependencies
|
2023-06-15 12:56:01 -05:00
|
|
|
run: ./y.sh prepare
|
2021-03-29 03:45:09 -05:00
|
|
|
|
2023-01-24 11:56:42 -06:00
|
|
|
- name: Test
|
|
|
|
run: ./scripts/test_rustc_tests.sh
|