SFnpsArmWinBinariesUpload #256
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |