mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-05 01:23:24 -08:00
[CI] Update macOS runner (keep same compile targets) (#7331)
* update/add eol dates * use new macOS images * [CI] Retire the old macOS ccache keys from the live list prune-caches deletes any ccache-* entry whose key is not in LIVE_CCACHE_KEYS, so the three keys this PR renames would be dropped on the next master run and every macOS leg would start cold. Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de> --------- Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
This commit is contained in:
parent
67330ead5a
commit
2056043104
1 changed files with 8 additions and 13 deletions
21
.github/workflows/desktop-build.yml
vendored
21
.github/workflows/desktop-build.yml
vendored
|
|
@ -526,8 +526,8 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- os: macOS
|
- os: macOS
|
||||||
target: 14 # EOL 2026-??
|
target: 14 # EOL 2026-09-14
|
||||||
runner: macos-26 # https://github.com/actions/runner-images/blob/main/images/macos/macos-26-arm64-Readme.md
|
runner: xcode-27 # https://github.com/actions/runner-images/blob/main/images/macos/xcode-27-arm64-Readme.md
|
||||||
|
|
||||||
ccache_eviction_age: 7d
|
ccache_eviction_age: 7d
|
||||||
cmake_generator: Ninja
|
cmake_generator: Ninja
|
||||||
|
|
@ -542,11 +542,10 @@ jobs:
|
||||||
vcpkg_deployment_target: 14
|
vcpkg_deployment_target: 14
|
||||||
vcpkg_scope: 'vcpkg/macos14-arm64-xcode26.6/'
|
vcpkg_scope: 'vcpkg/macos14-arm64-xcode26.6/'
|
||||||
vcpkg_upload: 1 # only one leg per vcpkg_scope hands its archives over
|
vcpkg_upload: 1 # only one leg per vcpkg_scope hands its archives over
|
||||||
xcode: "26.6"
|
|
||||||
|
|
||||||
- os: macOS
|
- os: macOS
|
||||||
target: 15
|
target: 15 # EOL 2027-??
|
||||||
runner: macos-26 # https://github.com/actions/runner-images/blob/main/images/macos/macos-26-arm64-Readme.md
|
runner: xcode-27 # https://github.com/actions/runner-images/blob/main/images/macos/xcode-27-arm64-Readme.md
|
||||||
|
|
||||||
ccache_eviction_age: 7d
|
ccache_eviction_age: 7d
|
||||||
cmake_generator: Ninja
|
cmake_generator: Ninja
|
||||||
|
|
@ -560,11 +559,10 @@ jobs:
|
||||||
use_ccache: 1
|
use_ccache: 1
|
||||||
vcpkg_deployment_target: 14
|
vcpkg_deployment_target: 14
|
||||||
vcpkg_scope: 'vcpkg/macos14-arm64-xcode26.6/'
|
vcpkg_scope: 'vcpkg/macos14-arm64-xcode26.6/'
|
||||||
xcode: "26.6"
|
|
||||||
|
|
||||||
- os: macOS
|
- os: macOS
|
||||||
target: 26
|
target: 27
|
||||||
runner: macos-26 # https://github.com/actions/runner-images/blob/main/images/macos/macos-26-arm64-Readme.md
|
runner: xcode-27 # https://github.com/actions/runner-images/blob/main/images/macos/xcode-27-arm64-Readme.md
|
||||||
|
|
||||||
ccache_eviction_age: 7d
|
ccache_eviction_age: 7d
|
||||||
cmake_generator: Ninja
|
cmake_generator: Ninja
|
||||||
|
|
@ -575,7 +573,6 @@ jobs:
|
||||||
use_ccache: 1
|
use_ccache: 1
|
||||||
vcpkg_deployment_target: 14
|
vcpkg_deployment_target: 14
|
||||||
vcpkg_scope: 'vcpkg/macos14-arm64-xcode26.6/'
|
vcpkg_scope: 'vcpkg/macos14-arm64-xcode26.6/'
|
||||||
xcode: "26.6"
|
|
||||||
|
|
||||||
- os: Windows
|
- os: Windows
|
||||||
target: 10
|
target: 10
|
||||||
|
|
@ -636,7 +633,7 @@ jobs:
|
||||||
id: restore_ccache
|
id: restore_ccache
|
||||||
uses: actions/cache/restore@v6
|
uses: actions/cache/restore@v6
|
||||||
with:
|
with:
|
||||||
key: ccache-${{ matrix.runner }}_${{ matrix.override_target }}-Xcode${{ matrix.xcode }}
|
key: ccache-${{ matrix.os }}${{ matrix.override_target }}-${{ matrix.runner }}
|
||||||
path: ${{ env.CCACHE_DIR }}
|
path: ${{ env.CCACHE_DIR }}
|
||||||
|
|
||||||
- name: "[macOS] Install aqtinstall"
|
- name: "[macOS] Install aqtinstall"
|
||||||
|
|
@ -751,7 +748,6 @@ jobs:
|
||||||
# configure.outputs.tag is set for ANY tag, so beta (Development) tags get the DSN
|
# configure.outputs.tag is set for ANY tag, so beta (Development) tags get the DSN
|
||||||
# and the symbol upload below just like full releases.
|
# and the symbol upload below just like full releases.
|
||||||
COCKATRICE_SENTRY_DSN: ${{ needs.configure.outputs.tag != null && secrets.SENTRY_DSN || '' }}
|
COCKATRICE_SENTRY_DSN: ${{ needs.configure.outputs.tag != null && secrets.SENTRY_DSN || '' }}
|
||||||
DEVELOPER_DIR: '/Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer'
|
|
||||||
GITHUB_TOKEN: ${{ github.token }} # needed for vcpkg dependency graph updates, see VCPKG_FEATURE_FLAGS
|
GITHUB_TOKEN: ${{ github.token }} # needed for vcpkg dependency graph updates, see VCPKG_FEATURE_FLAGS
|
||||||
MACOS_CERTIFICATE: ${{ secrets.PROD_MACOS_CERTIFICATE }}
|
MACOS_CERTIFICATE: ${{ secrets.PROD_MACOS_CERTIFICATE }}
|
||||||
MACOS_CERTIFICATE_NAME: ${{ secrets.PROD_MACOS_CERTIFICATE_NAME }}
|
MACOS_CERTIFICATE_NAME: ${{ secrets.PROD_MACOS_CERTIFICATE_NAME }}
|
||||||
|
|
@ -1112,7 +1108,6 @@ jobs:
|
||||||
use_ccache: 1
|
use_ccache: 1
|
||||||
vcpkg_scope: 'vcpkg/macos13-x64-xcode26.3/'
|
vcpkg_scope: 'vcpkg/macos13-x64-xcode26.3/'
|
||||||
vcpkg_upload: 1 # only one leg per vcpkg_scope hands its archives over
|
vcpkg_upload: 1 # only one leg per vcpkg_scope hands its archives over
|
||||||
xcode: "26.3"
|
|
||||||
|
|
||||||
name: ${{ matrix.os }} ${{ matrix.target }}${{ matrix.soc == 'Intel' && ' Intel' || '' }}${{ matrix.type == 'Debug' && ' Debug' || '' }}
|
name: ${{ matrix.os }} ${{ matrix.target }}${{ matrix.soc == 'Intel' && ' Intel' || '' }}${{ matrix.type == 'Debug' && ' Debug' || '' }}
|
||||||
needs: configure
|
needs: configure
|
||||||
|
|
@ -1166,7 +1161,7 @@ jobs:
|
||||||
# (PERSIST_CCACHE in build-linux and build-vcpkg), or a live entry is deleted.
|
# (PERSIST_CCACHE in build-linux and build-vcpkg), or a live entry is deleted.
|
||||||
# The nightly legs keep none, so their leftover entries are reclaimed here
|
# The nightly legs keep none, so their leftover entries are reclaimed here
|
||||||
# instead of waiting out the age rule.
|
# instead of waiting out the age rule.
|
||||||
LIVE_CCACHE_KEYS: 'ccache-Arch ccache-Servatrice_Debian12 ccache-Debian13 ccache-Fedora44 ccache-Ubuntu26.04 ccache-Ubuntu26.04sanitize ccache-macos-26_14-Xcode26.6 ccache-macos-26_15-Xcode26.6 ccache-macos-26_-Xcode26.6'
|
LIVE_CCACHE_KEYS: 'ccache-Arch ccache-Servatrice_Debian12 ccache-Debian13 ccache-Fedora44 ccache-Ubuntu26.04 ccache-Ubuntu26.04sanitize ccache-macOS14-xcode-27 ccache-macOS15-xcode-27 ccache-macOS-xcode-27'
|
||||||
run: |
|
run: |
|
||||||
gh api --paginate "repos/$GITHUB_REPOSITORY/actions/caches?per_page=100" \
|
gh api --paginate "repos/$GITHUB_REPOSITORY/actions/caches?per_page=100" \
|
||||||
--jq '.actions_caches[] | [.id, .ref, .key, .last_accessed_at] | @tsv' >"$RUNNER_TEMP/caches.tsv"
|
--jq '.actions_caches[] | [.id, .ref, .key, .last_accessed_at] | @tsv' >"$RUNNER_TEMP/caches.tsv"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue