Build openpilot on mac in CI (#1792)
* build on mac in CI * coreutils * python stuff * pipenv * newer clang * init pyenv * verbose * init pyenv * install eigen * ffmpeg * sdl * libav * libtool * glfw * add pipfile as cache key * test cache * fix cache path * brew link * update tools readme * don't cache on pipfile * skip python install if installed * unlink * simpler cachingm * here's your key * cache pip too * cache pyenv old-commit-hash: c450110f961173302bec7873b81939f01d5ad1ac
This commit is contained in:
25
.github/workflows/test.yaml
vendored
25
.github/workflows/test.yaml
vendored
@@ -48,6 +48,31 @@ jobs:
|
||||
scons -j$(nproc) && \
|
||||
$UNIT_TEST selfdrive/car"
|
||||
|
||||
build_mac:
|
||||
name: build macos
|
||||
runs-on: macos-10.15
|
||||
timeout-minutes: 35
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: true
|
||||
- name: Cache dependencies
|
||||
id: dependency-cache
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: |
|
||||
~/.pyenv
|
||||
~/Library/Caches/pip
|
||||
~/Library/Caches/pipenv
|
||||
~/Library/Caches/Homebrew
|
||||
key: ${{ hashFiles('tools/mac_setup.sh') }}
|
||||
- name: Install dependencies
|
||||
run: ./tools/mac_setup.sh
|
||||
- name: Build openpilot
|
||||
run: eval "$(pyenv init -)" && scons -j$(nproc)
|
||||
- name: Brew cleanup
|
||||
run: brew cleanup # keeps our cache small
|
||||
|
||||
docker_push:
|
||||
name: docker push
|
||||
runs-on: ubuntu-16.04
|
||||
|
||||
Reference in New Issue
Block a user