Skip to content

Commit

Permalink
Rename Xcode build, add CMake build
Browse files Browse the repository at this point in the history
- Refactor Xcode build workflow to use `xcodebuild` instead of `build` job.
- Add `cmake-macos` workflow to build and test using CMake and Ninja.
  • Loading branch information
ChinChangYang committed Nov 20, 2023
1 parent 7169a7f commit 98a202d
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- '.github/workflows/build.yml'

jobs:
build:
xcodebuild:
runs-on: macos-13
steps:
- name: Checkout code
Expand Down Expand Up @@ -44,3 +44,23 @@ jobs:
run: |
cd cpp/xcode
/Applications/Xcode_15.0.1.app/Contents/Developer/usr/bin/xcodebuild -derivedDataPath DerivedData -scheme katago -configuration Release test
cmake-macos:
runs-on: macos-13
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Run cmake ninja
run: |
cd cpp
mv CMakeLists.txt-macos CMakeLists.txt
mkdir build
cd build
cmake -G Ninja ../
ninja
- name: Run KataGo tests
run: |
cd cpp/build
./katago runnnlayertests

0 comments on commit 98a202d

Please sign in to comment.