-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use macos-latest #690
Use macos-latest #690
Changes from 5 commits
6d3ded2
90b1bdc
b7dea5a
b48f8f2
5dffe94
948a633
32fd6a9
a1eaa00
5d03d0b
d862570
b03e270
42b7895
6fd4f35
7de75de
2910821
b4a01e4
6b6ccbb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,8 @@ concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
CACHE_INDEX: 1 | ||
|
||
jobs: | ||
cache_deps: | ||
|
@@ -24,7 +26,7 @@ jobs: | |
config: [{name: ci-ubuntu-gcc, os: ubuntu-latest}, | ||
{name: ci-ubuntu-clang, os: ubuntu-latest}, | ||
{name: ci-windows, os: windows-latest}, | ||
{name: ci-macos, os: macos-12}] | ||
{name: ci-macos, os: macos-latest}] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Codebase verification Based on the output, I can generate the final response as we have sufficient information about the available macOS runners. The script results show that GitHub Actions currently supports macOS versions 12 through 15, including ARM64 variants for versions 13-15. Specify macOS version 14 instead of using latest Using
🔗 Analysis chainConsider using a specific macOS version instead of latest While Run this script to check the current macOS version and available options: Also applies to: 142-142 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Description: Check current macOS runner version and available options
# Get current macos-latest version
gh api \
-H "Accept: application/vnd.github+json" \
/repos/actions/runner-images/contents/images/macos/macos-latest.json | jq -r '.content' | base64 -d | jq '.os_version'
# List available macOS runner versions
gh api \
-H "Accept: application/vnd.github+json" \
/repos/actions/runner-images/contents/images/macos | jq -r '.[].name' | grep macos
Length of output: 570 |
||
build_type: [{config: Release}, {config: Debug}] | ||
|
||
timeout-minutes: 120 | ||
|
@@ -50,8 +52,7 @@ jobs: | |
path: | | ||
~/.conan2 | ||
/Users/runner/.conan2/ | ||
key: deps-${{ matrix.config.name }}-${{ matrix.build_type.config }}-${{ hashFiles('**/conanfile.py') }}-${{ hashFiles('**/CMakePresets.json') }} | ||
restore-keys: deps-${{ matrix.config.name }}-${{ matrix.build_type.config }} | ||
key: deps-${{ matrix.config.name }}-${{ matrix.build_type.config }}-${{ hashFiles('**/conanfile.py') }}-${{ hashFiles('**/CMakePresets.json') }}-${{CACHE_INDEX}} | ||
lookup-only: true | ||
|
||
- name: Install Qt | ||
|
@@ -110,8 +111,7 @@ jobs: | |
path: | | ||
~/.conan2 | ||
/Users/runner/.conan2/ | ||
key: deps-ci-ubuntu-clang-Release-${{ hashFiles('**/conanfile.py') }}-${{ hashFiles('**/CMakePresets.json') }} | ||
restore-keys: deps-ci-ubuntu-clang-Release | ||
restore-keys: deps-ci-ubuntu-clang-Release-${{ hashFiles('**/conanfile.py') }}-${{ hashFiles('**/CMakePresets.json') }} | ||
|
||
- name: conan detect profile | ||
run: | | ||
|
@@ -137,7 +137,7 @@ jobs: | |
config: [{name: ci-ubuntu-gcc, os: ubuntu-latest}, | ||
{name: ci-ubuntu-clang, os: ubuntu-latest}, | ||
{name: ci-windows, os: windows-latest}, | ||
{name: ci-macos, os: macos-12}] | ||
{name: ci-macos, os: macos-latest}] | ||
type: [tests, benchmarks] | ||
build_type: [{config: Release, test_preset: ci-tests}, {config: Debug, test_preset: ci-tests-debug}] | ||
optimization_disabled: [{mode: 0, postfix: ""}, {mode: 1, postfix: " (Optimizations disabled)"}] | ||
|
@@ -188,8 +188,7 @@ jobs: | |
path: | | ||
~/.conan2 | ||
/Users/runner/.conan2/ | ||
key: deps-${{ matrix.config.name }}-${{ matrix.build_type.config }}-${{ hashFiles('**/conanfile.py') }}-${{ hashFiles('**/CMakePresets.json') }} | ||
restore-keys: deps-${{ matrix.config.name }}-${{ matrix.build_type.config }} | ||
restore-keys: deps-${{ matrix.config.name }}-${{ matrix.build_type.config }}-${{ hashFiles('**/conanfile.py') }}-${{ hashFiles('**/CMakePresets.json') }} | ||
|
||
- name: conan detect profile | ||
run: | | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix environment variable reference syntax
The
CACHE_INDEX
environment variable is incorrectly referenced in the cache key. GitHub Actions requires environment variables to be accessed through theenv
context.Apply this change to fix the syntax:
Also applies to: 55-55