CI: Compile openpilot on macOS (#32909)

* working

* cache

* bring back
old-commit-hash: 15d3397ec6
fix-exp-path
Hoang Bui 10 months ago committed by GitHub
parent 0a85819340
commit 856e536aa8
  1. 13
      .github/workflows/selfdrive_tests.yaml
  2. 1
      tools/mac_setup.sh

@ -106,8 +106,17 @@ jobs:
SKIP_PROMPT: 1 SKIP_PROMPT: 1
# package install has DeprecationWarnings # package install has DeprecationWarnings
PYTHONWARNINGS: default PYTHONWARNINGS: default
- name: Test openpilot environment - run: echo "CACHE_COMMIT_DATE=$(git log -1 --pretty='format:%cd' --date=format:'%Y-%m-%d-%H:%M')" >> $GITHUB_ENV
run: . .venv/bin/activate && scons -h - 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: static_analysis:
name: static analysis name: static analysis

@ -63,6 +63,7 @@ brew "qt@5"
brew "zeromq" brew "zeromq"
cask "gcc-arm-embedded" cask "gcc-arm-embedded"
brew "portaudio" brew "portaudio"
brew "gcc@13"
EOS EOS
echo "[ ] finished brew install t=$SECONDS" echo "[ ] finished brew install t=$SECONDS"

Loading…
Cancel
Save