Skip to content

Change build configuration to "Debug" for kataGo.xcscheme #32

Change build configuration to "Debug" for kataGo.xcscheme

Change build configuration to "Debug" for kataGo.xcscheme #32

Workflow file for this run

name: Build
on:
push:
paths:
- 'cpp/**'
- '.github/workflows/build.yml'
jobs:
build:
runs-on: macos-13
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Run Xcode build
run: |
cd cpp/xcode
/Applications/Xcode_15.0.1.app/Contents/Developer/usr/bin/xcodebuild -derivedDataPath DerivedData -scheme katago -configuration Release build
- name: Setup configuration
run: |
ln -s ../../../../../configs/misc/coreml_example.cfg cpp/xcode/DerivedData/Build/Products/Release/gtp.cfg
- name: Setup network
run: |
mkdir -p models
cd models
wget https://github.com/ChinChangYang/KataGo/releases/download/v1.13.2-coreml1/kata1-b18c384nbt-s7709731328-d3715293823.bin.gz
ln -s ../../../../../../models/kata1-b18c384nbt-s7709731328-d3715293823.bin.gz ../cpp/xcode/DerivedData/Build/Products/Release/model.bin.gz
- name: Setup CoreML model
run: |
mkdir -p models
cd models
wget https://github.com/ChinChangYang/KataGo/releases/download/v1.13.2-coreml1/KataGoModel19x19fp16v14s7709731328.mlpackage.zip
unzip KataGoModel19x19fp16v14s7709731328.mlpackage.zip
ln -s ../../../../../../models/KataGoModel19x19fp16v14s7709731328.mlpackage ../cpp/xcode/DerivedData/Build/Products/Release/KataGoModel19x19fp16.mlpackage
- name: Setup test data
run: |
ln -s ../../../../../tests cpp/xcode/DerivedData/Build/Products/Release/tests
- name: Run Xcode test
run: |
cd cpp/xcode
/Applications/Xcode_15.0.1.app/Contents/Developer/usr/bin/xcodebuild -derivedDataPath DerivedData -scheme katago -configuration Release test