mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-09-29 17:32:17 -07:00
Merge branch 'master' into test_cross-compilation
This commit is contained in:
commit
9abc04f641
2 changed files with 9 additions and 8 deletions
10
.github/workflows/desktop-build.yml
vendored
10
.github/workflows/desktop-build.yml
vendored
|
|
@ -42,7 +42,7 @@ concurrency:
|
||||||
jobs:
|
jobs:
|
||||||
configure:
|
configure:
|
||||||
name: Configure
|
name: Configure
|
||||||
runs-on: ubuntu-slim
|
runs-on: ubuntu-slim # https://github.com/actions/runner-images/blob/main/images/ubuntu-slim/ubuntu-slim-Readme.md
|
||||||
outputs:
|
outputs:
|
||||||
tag: ${{ steps.configure.outputs.tag }}
|
tag: ${{ steps.configure.outputs.tag }}
|
||||||
sha: ${{ steps.configure.outputs.sha }}
|
sha: ${{ steps.configure.outputs.sha }}
|
||||||
|
|
@ -146,7 +146,7 @@ jobs:
|
||||||
|
|
||||||
name: ${{ matrix.distro }} ${{ matrix.version }}
|
name: ${{ matrix.distro }} ${{ matrix.version }}
|
||||||
needs: configure
|
needs: configure
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest # https://github.com/actions/runner-images
|
||||||
continue-on-error: ${{ matrix.allow-failure == 'yes' }}
|
continue-on-error: ${{ matrix.allow-failure == 'yes' }}
|
||||||
timeout-minutes: 70
|
timeout-minutes: 70
|
||||||
env:
|
env:
|
||||||
|
|
@ -259,9 +259,9 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- os: macOS
|
- os: macOS
|
||||||
target: 13
|
target: 13 # EOL 2025-09-15
|
||||||
runner: macos-15-intel # https://github.com/actions/runner-images/blob/main/images/macos/macos-15-Readme.md
|
runner: macos-15-intel # https://github.com/actions/runner-images/blob/main/images/macos/macos-15-Readme.md
|
||||||
# macos-26-intel is slow and fails in CPack during DMG config if not increasing Finder timeout
|
# macos-26-intel is very slow and fails in CPack during DMG config if not increasing Finder timeout
|
||||||
|
|
||||||
ccache_eviction_age: 7d
|
ccache_eviction_age: 7d
|
||||||
cmake_generator: Ninja
|
cmake_generator: Ninja
|
||||||
|
|
@ -276,7 +276,7 @@ jobs:
|
||||||
xcode: "26.3"
|
xcode: "26.3"
|
||||||
|
|
||||||
- os: macOS
|
- os: macOS
|
||||||
target: 14
|
target: 14 # EOL 2026-??
|
||||||
runner: macos-26 # https://github.com/actions/runner-images/blob/main/images/macos/macos-26-arm64-Readme.md
|
runner: macos-26 # https://github.com/actions/runner-images/blob/main/images/macos/macos-26-arm64-Readme.md
|
||||||
|
|
||||||
ccache_eviction_age: 7d
|
ccache_eviction_age: 7d
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,7 @@ set -o pipefail
|
||||||
# go to the project root directory, this file should be located in the project root directory
|
# go to the project root directory, this file should be located in the project root directory
|
||||||
olddir="$PWD"
|
olddir="$PWD"
|
||||||
cd "${BASH_SOURCE%/*}/" || exit 2 # could not find path, this could happen with special links etc.
|
cd "${BASH_SOURCE%/*}/" || exit 2 # could not find path, this could happen with special links etc.
|
||||||
|
phys_root="$(pwd -P)"
|
||||||
|
|
||||||
# defaults
|
# defaults
|
||||||
include=("cockatrice/src" \
|
include=("cockatrice/src" \
|
||||||
|
|
@ -168,14 +169,14 @@ EOM
|
||||||
echo "error in parsing arguments of $0: $1 is an unrecognized option" >&2
|
echo "error in parsing arguments of $0: $1 is an unrecognized option" >&2
|
||||||
exit 2 # input error
|
exit 2 # input error
|
||||||
fi
|
fi
|
||||||
if [[ ! $1 ]] || next_dir=$(cd "$olddir" && cd -- "$1" && pwd); then
|
if [[ ! $1 ]] || next_dir=$(cd "$olddir" && cd -- "$1" && pwd -P); then
|
||||||
if ! [[ $set_include ]]; then
|
if ! [[ $set_include ]]; then
|
||||||
include=() # remove default includes
|
include=() # remove default includes
|
||||||
set_include=1
|
set_include=1
|
||||||
fi
|
fi
|
||||||
if [[ $1 ]]; then
|
if [[ $1 ]]; then
|
||||||
if [[ $next_dir != $PWD/* ]]; then
|
if [[ "$next_dir" != "$phys_root" && "$next_dir" != "$phys_root"/* ]]; then
|
||||||
echo "error in parsing arguments of $0: $next_dir is not in $PWD" >&2
|
echo "error in parsing arguments of $0: $next_dir is not in $phys_root" >&2
|
||||||
exit 2 # input error
|
exit 2 # input error
|
||||||
fi
|
fi
|
||||||
include+=("$next_dir")
|
include+=("$next_dir")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue