shithub: moonfish

Download patch

ref: c1e209f52f0dbbf0036c9c9db2a3058e1dba24f9
parent: bf9a910861a647728a42d4c92fcb7c6815c1898d
author: zamfofex <zamfofex@twdb.moe>
date: Fri Oct 20 10:48:27 EDT 2023

also minify on ‘build.yml’

--- a/.build.yml
+++ b/.build.yml
@@ -17,8 +17,12 @@
       cp sunfish/nnue/models/tanh.pickle moonfish
       cd moonfish
       make CPPFLAGS=-I../cJSON LDFLAGS='-static -L../cJSON' inbuilt_network=yes
+  - minify: |
+      cd moonfish
+      ./minify.sh
 artifacts:
   - moonfish/moonfish
   - moonfish/play
   - moonfish/lichess
   - moonfish/analyse
+  - moonfish/moonfish.sh
--- a/makefile
+++ b/makefile
@@ -2,7 +2,7 @@
 
 cc := $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS)
 
-src := *.c
+src := chess.c search.c main.c
 
 moonfish_cc := $(cc)
 tools_cc := $(cc) -pthread -D_POSIX_C_SOURCE=200809L
@@ -29,3 +29,4 @@
 
 clean:
 	$(RM) moonfish play lichess analyse
+	$(RM) moonfish.c moonfish.c.xz moonfish.sh
--