Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,52 @@ jobs:
path: build/butterscotch.exe
- name: Pack cache
run: cd ~ && tar cJf ccache.tar.xz .cache/ccache workspacecache.tar

build-glfw-macos:
name: Build (AppKit/macOS ${{ matrix.label }})
strategy:
fail-fast: false
matrix:
include:
- label: x86_64
runner: macos-26-intel
- label: arm64
runner: macos-26

runs-on: ${{ matrix.runner }}
steps:
- uses: actions/checkout@v4

- name: Get commit info
id: commit-info
run: |
echo "hash=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
echo "date=$(git log -1 --format=%cd --date=short)" >> $GITHUB_OUTPUT

- name: Install dependencies
run: brew install glfw ccache
env:
HOMEBREW_NO_AUTO_UPDATE: 1
HOMEBREW_NO_INSTALL_CLEANUP: 1

- uses: actions/cache@v5
with:
path: ~/Library/Caches/ccache
key: ccache-macos-${{ matrix.label }}-${{ github.sha }}
restore-keys: |
ccache-macos-${{ matrix.label }}-

- name: Configure
run: cmake -B build -G Ninja -DWERROR=ON -DCMAKE_C_FLAGS="-Wno-deprecated-declarations" -DDESKTOP_BACKEND=appkit -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_BUILD_TYPE=Release

- name: Build
run: cmake --build build

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: butterscotch-appkit-macos-${{ matrix.label }}
path: build/butterscotch

build-ps2:
name: Build (PS2)${{ matrix.label }}
Expand Down
Loading