|
|
@ -69,11 +69,8 @@ jobs: |
|
|
|
build: |
|
|
|
build: |
|
|
|
strategy: |
|
|
|
strategy: |
|
|
|
matrix: |
|
|
|
matrix: |
|
|
|
arch: ${{ fromJson( |
|
|
|
arch: ${{ fromJson('["x86_64"]') }} # TODO: Re-add build test for aarch64 once we switched to ubuntu-2404 |
|
|
|
((github.repository == 'commaai/openpilot') && |
|
|
|
runs-on: ubuntu-latest |
|
|
|
((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-latest' }} |
|
|
|
|
|
|
|
steps: |
|
|
|
steps: |
|
|
|
- uses: actions/checkout@v4 |
|
|
|
- uses: actions/checkout@v4 |
|
|
|
with: |
|
|
|
with: |
|
|
@ -90,23 +87,6 @@ jobs: |
|
|
|
- uses: ./.github/workflows/compile-openpilot |
|
|
|
- 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 |
|
|
|
timeout-minutes: ${{ ((steps.restore-scons-cache.outputs.cache-hit == 'true') && 15 || 30) }} # allow more time when we missed the scons cache |
|
|
|
|
|
|
|
|
|
|
|
docker_push_multiarch: |
|
|
|
|
|
|
|
name: docker push multiarch tag |
|
|
|
|
|
|
|
runs-on: ubuntu-latest |
|
|
|
|
|
|
|
if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request' && github.repository == 'commaai/openpilot' |
|
|
|
|
|
|
|
needs: [build] |
|
|
|
|
|
|
|
steps: |
|
|
|
|
|
|
|
- uses: actions/checkout@v4 |
|
|
|
|
|
|
|
with: |
|
|
|
|
|
|
|
submodules: false |
|
|
|
|
|
|
|
- name: Setup docker |
|
|
|
|
|
|
|
run: | |
|
|
|
|
|
|
|
$DOCKER_LOGIN |
|
|
|
|
|
|
|
- name: Merge x64 and arm64 tags |
|
|
|
|
|
|
|
run: | |
|
|
|
|
|
|
|
export PUSH_IMAGE=true |
|
|
|
|
|
|
|
scripts/retry.sh selfdrive/test/docker_tag_multiarch.sh base x86_64 aarch64 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static_analysis: |
|
|
|
static_analysis: |
|
|
|
name: static analysis |
|
|
|
name: static analysis |
|
|
|
runs-on: ${{ ((github.repository == 'commaai/openpilot') && |
|
|
|
runs-on: ${{ ((github.repository == 'commaai/openpilot') && |
|
|
|