mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-14 22:42:14 -07:00
move debug build to use homebrew to be representative of a developer
machine
This commit is contained in:
parent
9c58e6f90f
commit
66f1a1f289
1 changed files with 50 additions and 6 deletions
56
.github/workflows/desktop-build.yml
vendored
56
.github/workflows/desktop-build.yml
vendored
|
|
@ -251,12 +251,6 @@ jobs:
|
||||||
type: Release
|
type: Release
|
||||||
make_package: 1
|
make_package: 1
|
||||||
|
|
||||||
- target: 15
|
|
||||||
soc: Apple
|
|
||||||
os: macos-15
|
|
||||||
xcode: "16.2"
|
|
||||||
type: Debug
|
|
||||||
|
|
||||||
name: macOS ${{matrix.target}}${{ matrix.soc == 'Intel' && ' Intel' || '' }}${{ matrix.type == 'Debug' && ' Debug' || '' }}
|
name: macOS ${{matrix.target}}${{ matrix.soc == 'Intel' && ' Intel' || '' }}${{ matrix.type == 'Debug' && ' Debug' || '' }}
|
||||||
needs: configure
|
needs: configure
|
||||||
runs-on: ${{matrix.os}}
|
runs-on: ${{matrix.os}}
|
||||||
|
|
@ -399,6 +393,56 @@ jobs:
|
||||||
GH_TOKEN: ${{github.token}}
|
GH_TOKEN: ${{github.token}}
|
||||||
run: gh attestation verify ${{steps.build.outputs.path}} -R Cockatrice/Cockatrice
|
run: gh attestation verify ${{steps.build.outputs.path}} -R Cockatrice/Cockatrice
|
||||||
|
|
||||||
|
build-macos-debug:
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
include:
|
||||||
|
- target: 15
|
||||||
|
soc: Apple
|
||||||
|
os: macos-15
|
||||||
|
xcode: "16.4"
|
||||||
|
type: Debug
|
||||||
|
|
||||||
|
name: macOS Debug (homebrew)
|
||||||
|
needs: configure
|
||||||
|
runs-on: ${{matrix.os}}
|
||||||
|
continue-on-error: ${{matrix.allow-failure == 'yes'}}
|
||||||
|
env:
|
||||||
|
CCACHE_DIR: ${{github.workspace}}/.ccache/${{matrix.os}}-${{matrix.type}}
|
||||||
|
CCACHE_SIZE: 500M
|
||||||
|
DEVELOPER_DIR:
|
||||||
|
/Applications/Xcode_${{matrix.xcode}}.app/Contents/Developer
|
||||||
|
CMAKE_GENERATOR: 'Ninja'
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v5
|
||||||
|
|
||||||
|
- name: Install dependencies using Homebrew
|
||||||
|
shell: bash
|
||||||
|
# CMake cannot find the MySQL connector
|
||||||
|
# Neither of these works: mariadb-connector-c mysql-connector-c++
|
||||||
|
env:
|
||||||
|
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: 1
|
||||||
|
run: |
|
||||||
|
brew update
|
||||||
|
brew install ccache protobuf qt --force-bottle
|
||||||
|
|
||||||
|
- name: Setup ccache
|
||||||
|
uses: jianmingyong/ccache-action@v1
|
||||||
|
with:
|
||||||
|
ccache-key-prefix: ccache-${{matrix.os}}-${{matrix.soc}}-${{matrix.type}}
|
||||||
|
gh-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Build on Xcode ${{matrix.xcode}}
|
||||||
|
shell: bash
|
||||||
|
id: build
|
||||||
|
env:
|
||||||
|
BUILDTYPE: '${{matrix.type}}'
|
||||||
|
CMAKE_GENERATOR: '${{env.CMAKE_GENERATOR}}'
|
||||||
|
run: .ci/compile.sh --server --test --ccache "$CCACHE_SIZE"
|
||||||
|
|
||||||
build-windows:
|
build-windows:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue