pull/36071/head
workinright 4 days ago
parent 6fb3d6941f
commit ae29289f3c
  1. 11
      .github/workflows/selfdrive_tests.yaml
  2. 32
      .github/workflows/setup-cache/action.yaml
  3. 9
      .github/workflows/setup/action.yaml

@ -88,6 +88,17 @@ jobs:
- uses: ./.github/workflows/compile-openpilot - uses: ./.github/workflows/compile-openpilot
timeout-minutes: 30 timeout-minutes: 30
setup-cache:
name: setup cache
runs-on: ubuntu-24.04
needs: ["build"]
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: setup-cache
uses: ./.github/workflows/setup-cache
build_mac: build_mac:
name: build macOS name: build macOS
if: false # temp disable since homebrew install is getting stuck if: false # temp disable since homebrew install is getting stuck

@ -0,0 +1,32 @@
name: 'setup-cache'
inputs:
docker_hub_pat:
description: 'Auth token for Docker Hub, required for BuildJet jobs'
required: false
default: ''
sleep_time:
description: 'Time to sleep between retries'
required: false
default: 30
outputs:
duration:
description: 'Duration of the setup process in seconds'
value: ${{ steps.get_duration.outputs.duration }}
runs:
using: "composite"
steps:
# build cache
- id: date
shell: bash
run: echo "CACHE_COMMIT_DATE=$(git log -1 --pretty='format:%cd' --date=format:'%Y-%m-%d-%H:%M')" >> $GITHUB_ENV ; echo "CACHE_FILE_HASHES=$(sha256sum selfdrive/test/build.sh tools/install_ubuntu_dependencies.sh tools/install_python_dependencies.sh | cut -d" " -f1 | tr '\n' '_')" >> $GITHUB_ENV
- shell: bash
run: echo "$CACHE_COMMIT_DATE"
- name: Save rootfs cache
uses: actions/upload-artifact@v4
#if: github.ref == 'refs/heads/master'
with:
path: /tmp/rootfs_cache.tar
name: rootfs-${{ runner.arch }}-${{ env.CACHE_FILE_HASHES }}

@ -55,11 +55,4 @@ runs:
# build our rootfs image # build our rootfs image
- shell: bash - shell: bash
run: eval ${{ env.BUILD }} run: eval ${{ env.BUILD }}
# try to save rootfs image cache
- name: Save rootfs cache
uses: actions/upload-artifact@v4
#if: github.ref == 'refs/heads/master'
with:
path: /tmp/rootfs_cache.tar
name: rootfs-${{ runner.arch }}-${{ env.CACHE_FILE_HASHES }}
continue-on-error: true

Loading…
Cancel
Save