shithub: moonfish

Download patch

ref: 4c599a9a02c213a5e4befd832134f478ffe0ad76
parent: d14238ea01e6b653f4153fe56e747e8c8a6a056a
author: zamfofex <zamfofex@twdb.moe>
date: Mon Oct 9 13:03:00 EDT 2023

also build the Lichess integration

--- a/.build.yml
+++ b/.build.yml
@@ -2,14 +2,22 @@
 packages:
   - build-base
   - python3
+  - bearssl-dev
 sources:
   - https://git.sr.ht/~zamfofex/moonfish
   - https://github.com/thomasahle/sunfish#10e93383eae345c2b700657afe33b862604af20a
+  - https://github.com/DaveGamble/cJSON#v1.7.16
 tasks:
+  - build-cjson: |
+      cd cJSON
+      make
+      mkdir cjson
+      mv cJSON.h cjson
   - build: |
       cp sunfish/nnue/models/tanh.pickle moonfish
       cd moonfish
-      make LDFLAGS=-static inbuilt_network=yes moonfish play
+      make CPPFLAGS=-I../cJSON LDFLAGS='-static -L../cJSON' inbuilt_network=yes all
 artifacts:
   - moonfish/moonfish
   - moonfish/play
+  - moonfish/lichess
--