diff --git a/.github/workflows/openpilot.yaml b/.github/workflows/openpilot.yaml index 358ee6eb1..615816409 100644 --- a/.github/workflows/openpilot.yaml +++ b/.github/workflows/openpilot.yaml @@ -11,7 +11,13 @@ env: jobs: build_ubuntu: name: build ubuntu - runs-on: ubuntu-20.04 + strategy: + matrix: + arch: ${{ fromJson( + ((github.repository == 'commaai/plotjuggler') && + ((github.event_name != 'pull_request') || + (github.event.pull_request.head.repo.full_name == 'commaai/plotjuggler'))) && '["x86_64", "aarch64"]' || '["x86_64"]' ) }} + runs-on: ${{ (matrix.arch == 'aarch64') && 'buildjet-2vcpu-ubuntu-2204-arm' || 'ubuntu-20.04' }} steps: - uses: actions/checkout@v2 with: