[GA] Remove build caching

This commit is contained in:
Denis Angell
2025-03-25 11:40:18 +01:00
parent 9c26f1f213
commit 48919f028c
2 changed files with 2 additions and 29 deletions

View File

@@ -8,7 +8,6 @@ inputs:
default: null default: null
cache-key: cache-key:
required: true required: true
# An implicit input is the environment variable `build_dir`.
runs: runs:
using: composite using: composite
steps: steps:

View File

@@ -16,7 +16,6 @@ jobs:
runs-on: [self-hosted, macOS, ARM64] runs-on: [self-hosted, macOS, ARM64]
env: env:
build_dir: .build build_dir: .build
deps_dir: .build-deps
NUM_PROCESSORS: 12 NUM_PROCESSORS: 12
steps: steps:
- name: Checkout - name: Checkout
@@ -81,39 +80,14 @@ jobs:
uses: ./.github/actions/dependencies uses: ./.github/actions/dependencies
with: with:
configuration: ${{ matrix.configuration }} configuration: ${{ matrix.configuration }}
cache-key: macos-${{ matrix.platform }}-${{ matrix.generator }} cache-key: ${{ runner.os }}-${{ matrix.platform }}-${{ matrix.generator }}
env:
build_dir: ${{ env.deps_dir }}
- name: Generate safe branch name
id: safe-branch
run: |
# Replace characters that aren't allowed in cache keys
SAFE_BRANCH=$(echo "${{ github.ref_name }}" | tr -c 'a-zA-Z0-9_.-' '-')
echo "name=${SAFE_BRANCH}" >> $GITHUB_OUTPUT
- name: Restore build directory cache
id: build-cache-restore
uses: actions/cache/restore@v4
with:
path: ${{ env.build_dir }}
key: macos-build-${{ matrix.configuration }}-${{ steps.safe-branch.outputs.name }}-${{ hashFiles('conanfile.py') }}
restore-keys: |
macos-build-${{ matrix.configuration }}-${{ steps.safe-branch.outputs.name }}-
macos-build-${{ matrix.configuration }}-
- name: Build - name: Build
uses: ./.github/actions/build uses: ./.github/actions/build
with: with:
generator: ${{ matrix.generator }} generator: ${{ matrix.generator }}
configuration: ${{ matrix.configuration }} configuration: ${{ matrix.configuration }}
cache-key: ${{ runner.os }}-${{ matrix.platform }}-${{ matrix.generator }}
- name: Save build directory cache
if: success()
uses: actions/cache/save@v4
with:
path: ${{ env.build_dir }}
key: ${{ steps.build-cache-restore.outputs.cache-primary-key }}
- name: Test - name: Test
run: | run: |