CI: replace docker with op setup (#37282)

This commit is contained in:
Adeeb Shihadeh
2026-02-20 15:48:09 -08:00
committed by GitHub
parent 5d54743d8b
commit 806655b052
8 changed files with 49 additions and 156 deletions
+8 -12
View File
@@ -34,23 +34,19 @@ runs:
- id: date
shell: bash
run: echo "CACHE_COMMIT_DATE=$(git log -1 --pretty='format:%cd' --date=format:'%Y-%m-%d-%H:%M')" >> $GITHUB_ENV
- shell: bash
run: echo "$CACHE_COMMIT_DATE"
- id: scons-cache
uses: ./.github/workflows/auto-cache
with:
path: .ci_cache/scons_cache
path: /tmp/scons_cache
key: scons-${{ runner.arch }}-${{ env.CACHE_COMMIT_DATE }}-${{ github.sha }}
restore-keys: |
scons-${{ runner.arch }}-${{ env.CACHE_COMMIT_DATE }}
scons-${{ runner.arch }}
# 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 }}
name: Run setup
run: ./tools/op.sh setup
- shell: bash
name: Setup cache dirs
run: |
mkdir -p /tmp/comma_download_cache
echo "$GITHUB_WORKSPACE/.venv/bin" >> $GITHUB_PATH