diff --git a/.github/workflows/selfdrive_tests.yaml b/.github/workflows/selfdrive_tests.yaml index 3359f2a15e..419c472084 100644 --- a/.github/workflows/selfdrive_tests.yaml +++ b/.github/workflows/selfdrive_tests.yaml @@ -106,8 +106,17 @@ jobs: SKIP_PROMPT: 1 # package install has DeprecationWarnings PYTHONWARNINGS: default - - name: Test openpilot environment - run: . .venv/bin/activate && scons -h + - run: echo "CACHE_COMMIT_DATE=$(git log -1 --pretty='format:%cd' --date=format:'%Y-%m-%d-%H:%M')" >> $GITHUB_ENV + - name: Getting scons cache + uses: 'actions/cache@v4' + with: + path: /tmp/scons_cache + key: scons-${{ runner.arch }}-macos-${{ env.CACHE_COMMIT_DATE }}-${{ github.sha }} + restore-keys: | + scons-${{ runner.arch }}-macos-${{ env.CACHE_COMMIT_DATE }} + scons-${{ runner.arch }}-macos + - name: Building openpilot + run: . .venv/bin/activate && scons -j$(nproc) static_analysis: name: static analysis diff --git a/tools/mac_setup.sh b/tools/mac_setup.sh index 6b2d668524..9823427e65 100755 --- a/tools/mac_setup.sh +++ b/tools/mac_setup.sh @@ -63,6 +63,7 @@ brew "qt@5" brew "zeromq" cask "gcc-arm-embedded" brew "portaudio" +brew "gcc@13" EOS echo "[ ] finished brew install t=$SECONDS"