mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-28 07:57:38 +01:00
CI: improve more ci worflow
This commit is contained in:
18
.github/workflows/nightly.yml
vendored
18
.github/workflows/nightly.yml
vendored
@@ -56,16 +56,24 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
xcode-version: '26.2'
|
xcode-version: '26.2'
|
||||||
|
|
||||||
- name: Restore Cache
|
- name: Restore Cache (exact)
|
||||||
id: xcode-cache
|
id: xcode-cache-exact
|
||||||
uses: actions/cache/restore@v3
|
uses: actions/cache/restore@v3
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
~/Library/Developer/Xcode/DerivedData
|
~/Library/Developer/Xcode/DerivedData
|
||||||
~/Library/Caches/org.swift.swiftpm
|
~/Library/Caches/org.swift.swiftpm
|
||||||
key: xcode-build-cache-${{ github.ref_name }}-${{ github.sha }}
|
key: xcode-build-cache-${{ github.ref_name }}-${{ github.sha }}
|
||||||
restore-keys: |
|
|
||||||
xcode-build-cache-${{ github.ref_name }}-
|
- name: Restore Cache (last)
|
||||||
|
if: steps.xcode-cache-exact.outputs.cache-hit != 'true'
|
||||||
|
id: xcode-cache-fallback
|
||||||
|
uses: actions/cache/restore@v3
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
~/Library/Developer/Xcode/DerivedData
|
||||||
|
~/Library/Caches/org.swift.swiftpm
|
||||||
|
key: xcode-build-cache-${{ github.ref_name }}-
|
||||||
|
|
||||||
# --------------------------------------------------
|
# --------------------------------------------------
|
||||||
# build and test
|
# build and test
|
||||||
@@ -104,7 +112,7 @@ jobs:
|
|||||||
exit $STATUS
|
exit $STATUS
|
||||||
|
|
||||||
- name: Save Cache
|
- name: Save Cache
|
||||||
if: ${{ steps.xcode-cache.outputs.cache-hit != 'true' }}
|
if: ${{ steps.xcode-cache-fallback.outputs.cache-hit != 'true' }}
|
||||||
uses: actions/cache/save@v3
|
uses: actions/cache/save@v3
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
|
|||||||
Reference in New Issue
Block a user