mirror of
https://github.com/Xahau/xahaud.git
synced 2025-11-20 10:35:50 +00:00
[GA] Remove build caching
This commit is contained in:
1
.github/actions/build/action.yml
vendored
1
.github/actions/build/action.yml
vendored
@@ -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:
|
||||||
|
|||||||
30
.github/workflows/macos.ga.yml
vendored
30
.github/workflows/macos.ga.yml
vendored
@@ -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: |
|
||||||
|
|||||||
Reference in New Issue
Block a user