From 5d34c4c66b3da8f006436786ea2a9564bc153543 Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Thu, 10 Feb 2022 12:57:18 -0800 Subject: [PATCH] disable macos CI for now --- .github/workflows/selfdrive_tests.yaml | 112 ++++++++++++------------- 1 file changed, 56 insertions(+), 56 deletions(-) diff --git a/.github/workflows/selfdrive_tests.yaml b/.github/workflows/selfdrive_tests.yaml index aef9a0a49..987063700 100644 --- a/.github/workflows/selfdrive_tests.yaml +++ b/.github/workflows/selfdrive_tests.yaml @@ -69,62 +69,62 @@ jobs: rm -rf /tmp/scons_cache/* && \ scons -j$(nproc) --cache-populate" - build_mac: - name: build macos - runs-on: macos-latest - timeout-minutes: 60 - steps: - - uses: actions/checkout@v2 - with: - submodules: true - - name: Determine pre-existing Homebrew packages - if: steps.dependency-cache.outputs.cache-hit != 'true' - run: | - echo 'EXISTING_CELLAR<> $GITHUB_ENV - ls -1 /usr/local/Cellar >> $GITHUB_ENV - echo 'EOF' >> $GITHUB_ENV - - name: Cache dependencies - id: dependency-cache - uses: actions/cache@v2 - with: - path: | - ~/.pyenv - ~/.local/share/virtualenvs/ - /usr/local/Cellar - ~/github_brew_cache_entries.txt - /tmp/scons_cache - key: macos-${{ hashFiles('tools/mac_setup.sh', 'update_requirements.sh', 'Pipfile*') }} - restore-keys: macos- - - name: Brew link restored dependencies - run: | - if [ -f ~/github_brew_cache_entries.txt ]; then - while read pkg; do - brew link --force "$pkg" # `--force` for keg-only packages - done < ~/github_brew_cache_entries.txt - else - echo "Cache entries not found" - fi - - name: Install dependencies - run: ./tools/mac_setup.sh - - name: Build openpilot - run: | - source tools/openpilot_env.sh - pipenv run selfdrive/manager/build.py - - # cleanup scons cache - rm -rf /tmp/scons_cache/ - pipenv run scons -j$(nproc) --cache-populate - - name: Remove pre-existing Homebrew packages for caching - if: steps.dependency-cache.outputs.cache-hit != 'true' - run: | - cd /usr/local/Cellar - new_cellar=$(ls -1) - comm -12 <(echo "$EXISTING_CELLAR") <(echo "$new_cellar") | while read pkg; do - if [[ $pkg != "zstd" ]]; then # caching step needs zstd - rm -rf "$pkg" - fi - done - comm -13 <(echo "$EXISTING_CELLAR") <(echo "$new_cellar") | tee ~/github_brew_cache_entries.txt + #build_mac: + # name: build macos + # runs-on: macos-latest + # timeout-minutes: 60 + # steps: + # - uses: actions/checkout@v2 + # with: + # submodules: true + # - name: Determine pre-existing Homebrew packages + # if: steps.dependency-cache.outputs.cache-hit != 'true' + # run: | + # echo 'EXISTING_CELLAR<> $GITHUB_ENV + # ls -1 /usr/local/Cellar >> $GITHUB_ENV + # echo 'EOF' >> $GITHUB_ENV + # - name: Cache dependencies + # id: dependency-cache + # uses: actions/cache@v2 + # with: + # path: | + # ~/.pyenv + # ~/.local/share/virtualenvs/ + # /usr/local/Cellar + # ~/github_brew_cache_entries.txt + # /tmp/scons_cache + # key: macos-${{ hashFiles('tools/mac_setup.sh', 'update_requirements.sh', 'Pipfile*') }} + # restore-keys: macos- + # - name: Brew link restored dependencies + # run: | + # if [ -f ~/github_brew_cache_entries.txt ]; then + # while read pkg; do + # brew link --force "$pkg" # `--force` for keg-only packages + # done < ~/github_brew_cache_entries.txt + # else + # echo "Cache entries not found" + # fi + # - name: Install dependencies + # run: ./tools/mac_setup.sh + # - name: Build openpilot + # run: | + # source tools/openpilot_env.sh + # pipenv run selfdrive/manager/build.py + # + # # cleanup scons cache + # rm -rf /tmp/scons_cache/ + # pipenv run scons -j$(nproc) --cache-populate + # - name: Remove pre-existing Homebrew packages for caching + # if: steps.dependency-cache.outputs.cache-hit != 'true' + # run: | + # cd /usr/local/Cellar + # new_cellar=$(ls -1) + # comm -12 <(echo "$EXISTING_CELLAR") <(echo "$new_cellar") | while read pkg; do + # if [[ $pkg != "zstd" ]]; then # caching step needs zstd + # rm -rf "$pkg" + # fi + # done + # comm -13 <(echo "$EXISTING_CELLAR") <(echo "$new_cellar") | tee ~/github_brew_cache_entries.txt build_webcam: name: build webcam