|
|
|
@ -75,7 +75,7 @@ jobs: |
|
|
|
|
((github.repository == 'commaai/openpilot') && |
|
|
|
|
((github.event_name != 'pull_request') || |
|
|
|
|
(github.event.pull_request.head.repo.full_name == 'commaai/openpilot'))) && '["x86_64", "aarch64"]' || '["x86_64"]' ) }} |
|
|
|
|
runs-on: ${{ (matrix.arch == 'aarch64') && 'namespace-profile-arm64-2x8' || 'ubuntu-20.04' }} |
|
|
|
|
runs-on: ${{ (matrix.arch == 'aarch64') && 'buildjet-2vcpu-ubuntu-2204-arm' || 'ubuntu-20.04' }} |
|
|
|
|
steps: |
|
|
|
|
- uses: actions/checkout@v4 |
|
|
|
|
with: |
|
|
|
@ -83,15 +83,18 @@ jobs: |
|
|
|
|
- uses: ./.github/workflows/setup-with-retry |
|
|
|
|
with: |
|
|
|
|
docker_hub_pat: ${{ secrets.DOCKER_HUB_PAT }} |
|
|
|
|
cache_key_prefix: scons_${{ matrix.arch }} |
|
|
|
|
- uses: ./.github/workflows/compile-openpilot |
|
|
|
|
timeout-minutes: ${{ ((steps.restore-scons-cache.outputs.cache-hit == 'true') && 15 || 30) }} # allow more time when we missed the scons cache |
|
|
|
|
with: |
|
|
|
|
cache_key_prefix: scons_${{ matrix.arch }} |
|
|
|
|
|
|
|
|
|
docker_push: |
|
|
|
|
name: docker push |
|
|
|
|
strategy: |
|
|
|
|
matrix: |
|
|
|
|
arch: ${{ fromJson( (github.repository == 'commaai/openpilot') && '["x86_64", "aarch64"]' || '["x86_64"]' ) }} |
|
|
|
|
runs-on: ${{ (matrix.arch == 'aarch64') && 'namespace-profile-arm64-2x8' || 'ubuntu-20.04' }} |
|
|
|
|
runs-on: ${{ (matrix.arch == 'aarch64') && 'buildjet-2vcpu-ubuntu-2204-arm' || 'ubuntu-20.04' }} |
|
|
|
|
if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request' && github.repository == 'commaai/openpilot' |
|
|
|
|
steps: |
|
|
|
|
- uses: actions/checkout@v4 |
|
|
|
@ -130,9 +133,7 @@ jobs: |
|
|
|
|
|
|
|
|
|
static_analysis: |
|
|
|
|
name: static analysis |
|
|
|
|
runs-on: ${{ ((github.repository == 'commaai/openpilot') && |
|
|
|
|
((github.event_name != 'pull_request') || |
|
|
|
|
(github.event.pull_request.head.repo.full_name == 'commaai/openpilot'))) && 'namespace-profile-amd64-8x16' || 'ubuntu-20.04' }} |
|
|
|
|
runs-on: ubuntu-20.04 |
|
|
|
|
steps: |
|
|
|
|
- uses: actions/checkout@v4 |
|
|
|
|
with: |
|
|
|
@ -164,7 +165,7 @@ jobs: |
|
|
|
|
name: unit tests |
|
|
|
|
runs-on: ${{ ((github.repository == 'commaai/openpilot') && |
|
|
|
|
((github.event_name != 'pull_request') || |
|
|
|
|
(github.event.pull_request.head.repo.full_name == 'commaai/openpilot'))) && 'namespace-profile-amd64-8x16' || 'ubuntu-20.04' }} |
|
|
|
|
(github.event.pull_request.head.repo.full_name == 'commaai/openpilot'))) && 'buildjet-8vcpu-ubuntu-2004' || 'ubuntu-20.04' }} |
|
|
|
|
steps: |
|
|
|
|
- uses: actions/checkout@v4 |
|
|
|
|
with: |
|
|
|
@ -180,7 +181,7 @@ jobs: |
|
|
|
|
run: | |
|
|
|
|
${{ env.RUN }} "source selfdrive/test/setup_xvfb.sh && \ |
|
|
|
|
export MAPBOX_TOKEN='pk.eyJ1Ijoiam5ld2IiLCJhIjoiY2xxNW8zZXprMGw1ZzJwbzZneHd2NHljbSJ9.gV7VPRfbXFetD-1OVF0XZg' && \ |
|
|
|
|
$PYTEST --timeout 40 -m 'not slow' -n $(nproc) && \ |
|
|
|
|
$PYTEST --timeout 40 -m 'not slow' && \ |
|
|
|
|
./selfdrive/ui/tests/create_test_translations.sh && \ |
|
|
|
|
QT_QPA_PLATFORM=offscreen ./selfdrive/ui/tests/test_translations && \ |
|
|
|
|
./selfdrive/ui/tests/test_translations.py" |
|
|
|
@ -195,7 +196,7 @@ jobs: |
|
|
|
|
name: process replay |
|
|
|
|
runs-on: ${{ ((github.repository == 'commaai/openpilot') && |
|
|
|
|
((github.event_name != 'pull_request') || |
|
|
|
|
(github.event.pull_request.head.repo.full_name == 'commaai/openpilot'))) && 'namespace-profile-amd64-8x16' || 'ubuntu-20.04' }} |
|
|
|
|
(github.event.pull_request.head.repo.full_name == 'commaai/openpilot'))) && 'buildjet-8vcpu-ubuntu-2004' || 'ubuntu-20.04' }} |
|
|
|
|
steps: |
|
|
|
|
- uses: actions/checkout@v4 |
|
|
|
|
with: |
|
|
|
|