diff --git a/.github/workflows/selfdrive_tests.yaml b/.github/workflows/selfdrive_tests.yaml index a63a8d2df3..6bb0beb0fc 100644 --- a/.github/workflows/selfdrive_tests.yaml +++ b/.github/workflows/selfdrive_tests.yaml @@ -102,26 +102,26 @@ jobs: build_mac: name: build macOS - runs-on: macos-latest + runs-on: namespace-profile-macos-8x14 steps: - uses: actions/checkout@v4 with: submodules: true - - run: git lfs pull + - name: Homebrew cache + uses: ./.github/workflows/auto-cache + with: + path: ~/Library/Caches/Homebrew - name: Install dependencies run: ./tools/mac_setup.sh env: # package install has DeprecationWarnings PYTHONWARNINGS: default + - run: git lfs pull - 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' + uses: ./.github/workflows/auto-cache 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)