CI: speedup unit test job (#30995)

* start

* mv to buildjet

* fix
old-commit-hash: e17e66180c3a9432e6d303ca36ff0e4af763dace
This commit is contained in:
Adeeb Shihadeh
2024-01-13 21:16:35 -08:00
committed by GitHub
parent 8277f37c4b
commit 96e9a7d3ce
4 changed files with 12 additions and 3 deletions
+5 -1
View File
@@ -163,12 +163,16 @@ jobs:
unit_tests:
name: unit tests
runs-on: ubuntu-20.04
runs-on: ${{ ((github.repository == 'commaai/openpilot') &&
((github.event_name != 'pull_request') ||
(github.event.pull_request.head.repo.full_name == 'commaai/openpilot'))) && 'buildjet-8vcpu-ubuntu-2004' || 'ubuntu-20.04' }}
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: ./.github/workflows/setup-with-retry
with:
docker_hub_pat: ${{ secrets.DOCKER_HUB_PAT }}
- name: Build openpilot
timeout-minutes: ${{ ((steps.restore-scons-cache.outputs.cache-hit == 'true') && 10 || 30) }} # allow more time when we missed the scons cache
run: ${{ env.RUN }} "scons -j$(nproc)"