|
| 1 | +name: NightlyTestManual |
| 2 | + |
| 3 | +# This workflow can only be dispatched. |
| 4 | +on: |
| 5 | + workflow_dispatch: |
| 6 | + |
| 7 | +# We want to cancel previous runs for a given PR or branch / ref if another CI |
| 8 | +# run is requested. |
| 9 | +# See: https://docs.github.com/en/actions/using-jobs/using-concurrency |
| 10 | +concurrency: |
| 11 | + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} |
| 12 | + cancel-in-progress: true |
| 13 | + |
| 14 | +env: |
| 15 | + # default compiler for all non-compatibility tests |
| 16 | + MATRIX_EVAL: "CC=gcc-11 && CXX=g++-11" |
| 17 | + |
| 18 | +jobs: |
| 19 | + Run-tests: |
| 20 | + # Prevents from running on forks where no custom runners are available |
| 21 | + if: ${{ github.repository_owner == 'verilog-to-routing' }} |
| 22 | + |
| 23 | + name: 'Nightly Tests Manual Run' |
| 24 | + # This workflow is expected to take around 19 hours. Giving it 24 hours |
| 25 | + # before timing out. |
| 26 | + timeout-minutes: 1440 |
| 27 | + runs-on: [self-hosted, Linux, X64, SAVI] |
| 28 | + |
| 29 | + steps: |
| 30 | + # Clean previous runs of this workflow. |
| 31 | + - name: 'Cleanup build folder' |
| 32 | + run: | |
| 33 | + rm -rf ./* || true |
| 34 | + rm -rf ./.??* || true |
| 35 | +
|
| 36 | + # Checkout the VTR repo. |
| 37 | + - uses: actions/checkout@v4 |
| 38 | + with: |
| 39 | + submodules: 'true' |
| 40 | + |
| 41 | + # Get the extra benchmarks |
| 42 | + - name: 'Get Extra Benchmarks' |
| 43 | + run: | |
| 44 | + make get_titan_benchmarks |
| 45 | + make get_ispd_benchmarks |
| 46 | + ./dev/upgrade_vtr_archs.sh |
| 47 | + make get_symbiflow_benchmarks |
| 48 | +
|
| 49 | + # Build VTR using the default build options. |
| 50 | + - name: 'Build VTR' |
| 51 | + run: | |
| 52 | + make -j12 |
| 53 | + make env |
| 54 | + source .venv/bin/activate |
| 55 | + pip install -r requirements.txt |
| 56 | +
|
| 57 | + # Run all of the nightly tests. |
| 58 | + # TODO: We could expose more parallelism if we had one task list which ran |
| 59 | + # all of these. |
| 60 | + - name: 'Run Nightly Tests' |
| 61 | + run: | |
| 62 | + source .venv/bin/activate |
| 63 | + ./run_reg_test.py -j12 \ |
| 64 | + vtr_reg_nightly_test1 \ |
| 65 | + vtr_reg_nightly_test2 \ |
| 66 | + vtr_reg_nightly_test3 \ |
| 67 | + vtr_reg_nightly_test4 \ |
| 68 | + vtr_reg_nightly_test5 \ |
| 69 | + vtr_reg_nightly_test6 \ |
| 70 | + vtr_reg_nightly_test7 |
| 71 | +
|
0 commit comments