forked from official-stockfish/Stockfish
-
Notifications
You must be signed in to change notification settings - Fork 1
101 lines (89 loc) · 3.13 KB
/
SFnps_ArmWinBinariesUpload.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
name: SFnpsArmWinBinariesUpload
on:
workflow_dispatch:
jobs:
SFnpsArmTest:
name: ${{ matrix.config.name }}
runs-on: ${{ matrix.config.os }}
env:
COMPILER: ${{ matrix.config.compiler }}
COMP: ${{ matrix.config.comp }}
strategy:
matrix:
config:
- name: Ubuntu 22.04 NDK armv8
os: ubuntu-22.04
compiler: aarch64-linux-android21-clang++
comp: ndk
run_armv8_tests: true
shell: bash {0}
- name: Windows 2022 Mingw-w64 GCC x86_64
os: windows-2022
compiler: g++
comp: mingw
run_win11_tests: true
msys_sys: mingw64
msys_env: x86_64-gcc
shell: msys2 {0}
defaults:
run:
working-directory: src
shell: ${{ matrix.config.shell }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup msys and install required packages
if: runner.os == 'Windows'
uses: msys2/setup-msys2@v2
with:
msystem: ${{ matrix.config.msys_sys }}
install: mingw-w64-${{ matrix.config.msys_env }} make git
- name: Download the used network from the fishtest framework
run: make net
- name: Test armv8 build
if: ${{ matrix.config.run_armv8_tests }}
run: |
export PATH=$ANDROID_NDK_HOME:$PATH
export PATH=$ANDROID_NDK_HOME/toolchains/llvm/prebuilt/linux-x86_64/bin:$PATH
cp nn-*.nnue ../jni
cd ../jni
cp Application_v8.mk Application.mk
ndk-build
cd ../libs/arm64-v8a
cp Stockfish ../../SFnps_armv8
- uses: xresloader/[email protected]
if: ${{ matrix.config.run_armv8_tests }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
overwrite: true
file: "SFnps_armv8"
update_latest_release: true
- uses: actions/upload-artifact@v4
if: ${{ matrix.config.run_armv8_tests }}
with:
name: SFnps-armv8
path: SFnps_armv8
#path: /home/runner/work/StockfishNPS/StockfishNPS/SFnps_armv8
- name: win11 build
if: ${{ matrix.config.run_win11_tests }}
run: |
make clean
make -j profile-build ARCH=x86-64-modern COMP=$COMP
make strip ARCH=x86-64-modern COMP=$COMP
cp stockfish.exe ../SFnps_modern.exe
- uses: xresloader/[email protected]
if: ${{ matrix.config.run_win11_tests }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
overwrite: true
file: "SFnps_modern.exe"
update_latest_release: true
- uses: actions/upload-artifact@v4
if: ${{ matrix.config.run_win11_tests }}
with:
name: SFnps-modern
path: SFnps_modern.exe
#path: D:\a\StockfishNPS\StockfishNPS\SFnps_modern.exe