diff --git a/.github/workflows/selfdrive_tests.yaml b/.github/workflows/selfdrive_tests.yaml index b9a9131d71..e3f060b0dd 100644 --- a/.github/workflows/selfdrive_tests.yaml +++ b/.github/workflows/selfdrive_tests.yaml @@ -192,8 +192,9 @@ jobs: - uses: actions/checkout@v3 with: submodules: true - - name: Build Docker image - run: eval "$BUILD" + - uses: ./.github/workflows/setup + with: + git-lfs: false - name: Push to container registry run: | $DOCKER_LOGIN diff --git a/.github/workflows/setup/action.yaml b/.github/workflows/setup/action.yaml index 2eeefd9f3e..1181008f7e 100644 --- a/.github/workflows/setup/action.yaml +++ b/.github/workflows/setup/action.yaml @@ -32,6 +32,13 @@ runs: restore-keys: | scons-${{ env.CACHE_COMMIT_DATE }}- scons- + # as suggested here: https://github.com/moby/moby/issues/32816#issuecomment-910030001 + - id: normalize-file-permissions + shell: bash + name: Normalize file permissions to ensure a consistent docker build cache + run: | + find . -type f -executable -not -perm 755 -exec chmod 755 {} \; + find . -type f -not -executable -not -perm 644 -exec chmod 644 {} \; # build our docker image - shell: bash run: eval ${{ env.BUILD }}