* distributed option * i18n, pause, etc * fixes galore * max buffer etc * test override config * maxgame * visit * contribute menu * restore vars * i18n * actually start * retry distr and errors * pw eye / move speed * cfg/no log * shutdown fix * shutdown fix * download fix * wut * stats and desc * esc fix * Omit terminate queries from KataGoEngine.queries. (#353) * press key h to clear current node analysis. (#352) * clear current node all analysis * add reset key binding * reset all analysis off. * code refactor * code change according to review. * remove useless variable * code review changes * clean up reset node * oops * Setup position feature (#354) * go for zebras * setup working! * uhh * tweak * img * fix i18n * AEEEEEEEEEE and stop * link in readme * new game options for edit/new/setup (#357) * new game options for edit/new/setup * feedback * fix * ai thoughts * no tristate cb * branch fixing (#358) * new game options for edit/new/setup * feedback * fix * ai thoughts * no tristate cb * fix comma etc * normal katago * kata * dll * save window pos/size * BAD comma * new linux binary + allow default engine * fix * unused icon, build mac * exe * player new game fix * fix i18n * test test * just print * 한국어 * 활성화 * Add new Traditional Chinese translation (#362) Improve some translations as well. * cn (#363) * cn * rm old * rm old * informal you * mo * jp (#364) * config and readme * mo * kgtraining * fix score * lower stddev a bit * tweak weights * 1.8 French Po (#365) * fr and getattr fix * -DBUILD_DISTRIBUTED=1 * openssl * openssl * openssl * openssl * config * jp (num undos) (#366) * clarify undo in en, po->mo * fix player name * new kata * new kata * Load game option save config (#367) * in the load dialog, "load fast analysis" and "rewind to the start" option ,save to config file * in the load dialog, "load fast analysis" and "rewind to the start" option ,save to config file * default option * remove useless override * save check state when file dialog's submit event , * save config in callback * readme * active games * de * log games as json always * black * Russian localization for 1.8.0 (#375) * ru Co-authored-by: pdeblanc <peter@spaceandgames.com> Co-authored-by: xiaoyifang <105986+xiaoyifang@users.noreply.github.com> Co-authored-by: Liou, Guan-Cheng <Tony-Liou@users.noreply.github.com> Co-authored-by: kaorahi <38910552+kaorahi@users.noreply.github.com> Co-authored-by: Dontbtme <66470440+Dontbtme@users.noreply.github.com> Co-authored-by: Alexander Kiselev <satoshi.yoda.register.264@gmail.com>
79 lines
2.4 KiB
YAML
79 lines
2.4 KiB
YAML
name: build_osx
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
pull_request:
|
|
branches: [ master ]
|
|
|
|
jobs:
|
|
osx_app:
|
|
runs-on: macos-10.15
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v2
|
|
with:
|
|
python-version: 3.8
|
|
- name: Build KataGo
|
|
run: |
|
|
export OPENSSL_ROOT_DIR=$(brew --prefix openssl)
|
|
export OPENSSL_LIBRARIES="${OPENSSL_ROOT_DIR}/lib"
|
|
echo $OPENSSL_ROOT_DIR
|
|
ls $OPENSSL_ROOT_DIR
|
|
echo $OPENSSL_LIBRARIES
|
|
ls $OPENSSL_LIBRARIES
|
|
rm katrain/KataGo/katago
|
|
rm katrain/KataGo/*.dll
|
|
rm katrain/KataGo/katago.exe
|
|
cd ..
|
|
git clone --branch stable https://github.com/lightvector/KataGo.git
|
|
pushd KataGo/cpp
|
|
cmake . -DUSE_BACKEND=OPENCL -DBUILD_DISTRIBUTED=1
|
|
make
|
|
cp katago ../../katrain/katrain/KataGo/katago-osx
|
|
- name: Get Kivy dependencies
|
|
run: |
|
|
cd ..
|
|
git clone https://github.com/kivy/kivy-sdk-packager.git
|
|
cd kivy-sdk-packager/osx
|
|
curl -O -L https://kivy.org/downloads/ci/osx/app/Kivy.dmg
|
|
hdiutil attach Kivy.dmg -mountroot .
|
|
cp -R Kivy/Kivy.app KaTrain.app
|
|
- name: Install KaTrain pip dependencies
|
|
run: |
|
|
pushd ../kivy-sdk-packager/osx/KaTrain.app/Contents/Resources/venv/bin
|
|
source activate
|
|
popd
|
|
python -m pip install .
|
|
- name: Finalize KaTrain bundle
|
|
run: |
|
|
cd ../kivy-sdk-packager/osx
|
|
pushd KaTrain.app/Contents/Resources/
|
|
ln -s ./venv/bin/KaTrain yourapp
|
|
popd
|
|
./fix-bundle-metadata.sh KaTrain.app -n KaTrain -v "1.8.0" -a "Sander Land" -o "org.katrain.KaTrain" -i "../../katrain/katrain/img/icon.ico"
|
|
./cleanup-app.sh KaTrain.app -g 1
|
|
./relocate.sh KaTrain.app
|
|
- name: Create dmg
|
|
run: |
|
|
pushd ../kivy-sdk-packager/osx
|
|
./create-osx-dmg.sh KaTrain.app KaTrain
|
|
popd
|
|
mkdir osx_app
|
|
cp ../kivy-sdk-packager/osx/KaTrain.dmg osx_app/
|
|
- name: Upload app as artifact
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: KaTrainOSX
|
|
path: osx_app
|
|
- name: Upload to GitHub Release
|
|
uses: softprops/action-gh-release@78c309ef59fdb9557cd6574f2e0be552936ed728
|
|
if: startsWith(github.ref, 'refs/tags/')
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
with:
|
|
files: KaTrainOSX/*
|
|
draft: true
|
|
fail_on_unmatched_files: true
|