Skip to content

Commit

Permalink
A fix for GitHub Actions build
Browse files Browse the repository at this point in the history
- Add network, CoreML model, test data, and update file paths for tests
  • Loading branch information
ChinChangYang committed Nov 10, 2023
1 parent c2a0bc9 commit fafd843
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,26 @@ jobs:
cd cpp/xcode
/Applications/Xcode_15.0.1.app/Contents/Developer/usr/bin/xcodebuild -scheme katago -configuration Release build
- 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
mv kata1-b18c384nbt-s7709731328-d3715293823.bin.gz 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/KataGo/Build/Products/Release/KataGoModel19x19fp16.mlpackage
- name: Setup test data
run: |
cd cpp/xcode/DerivedData/KataGo/Build/Products/Release/
ln -s ../../../../../../tests .
- name: Run Xcode test
run: |
cd cpp/xcode
Expand Down
8 changes: 4 additions & 4 deletions cpp/xcode/KataGoMetalTest/testnn.mm
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ - (void)testOutput {
- (void)testNNOnTinyBoard {
std::vector<std::string> args;
args.push_back("katago");
args.push_back("model.bin.gz");
args.push_back("../../../../../../../models/model.bin.gz");
args.push_back("false");
args.push_back("false");
args.push_back("0");
Expand All @@ -38,7 +38,7 @@ - (void)testNNOnTinyBoard {
- (void)testNNSymmetries {
std::vector<std::string> args;
args.push_back("katago");
args.push_back("model.bin.gz");
args.push_back("../../../../../../../models/model.bin.gz");
args.push_back("false");
args.push_back("false");
args.push_back("false");
Expand All @@ -48,8 +48,8 @@ - (void)testNNSymmetries {
- (void)testOwnership {
std::vector<std::string> args;
args.push_back("katago");
args.push_back("coreml_example.cfg");
args.push_back("model.bin.gz");
args.push_back("../../../../../../configs/misc/coreml_example.cfg");
args.push_back("../../../../../../../models/model.bin.gz");
MainCmds::runownershiptests(args);
}

Expand Down

0 comments on commit fafd843

Please sign in to comment.