Skip to content

Commit

Permalink
Update SFMnpsNoPGO_ArmWinBinariesUpload.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Joachim26 authored Jan 4, 2024
1 parent dff6998 commit 6722420
Showing 1 changed file with 9 additions and 51 deletions.
60 changes: 9 additions & 51 deletions .github/workflows/SFMnpsNoPGO_ArmWinBinariesUpload.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: SFMnpsArmWinBinariesUpload
name: SFDNavx2Upload
on:
workflow_dispatch:
jobs:
Expand All @@ -11,13 +11,6 @@ jobs:
strategy:
matrix:
config:
- name: Ubuntu 22.04 NDK armv8
os: ubuntu-22.04
compiler: aarch64-linux-android21-clang++
comp: ndk
run_armv8_build: true
shell: bash {0}

- name: Windows 2022 Mingw-w64 GCC x86_64
os: windows-2022
compiler: g++
Expand All @@ -43,63 +36,28 @@ jobs:
msystem: ${{ matrix.config.msys_sys }}
install: mingw-w64-${{ matrix.config.msys_env }} make git

- name: Download the MEDIUM network from the fishtest framework
- name: Download both networks from the fishtest framework
run: |
cp evaluateM.h evaluate.h
cd nnue
cp nnue_architectureM.h nnue_architecture.h
cd ..
make net
- name: armv8 build
if: ${{ matrix.config.run_armv8_build }}
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 ../../SFMnps_armv8
- uses: xresloader/upload-to-github-release@v1
if: ${{ matrix.config.run_armv8_build }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
overwrite: false
file: "SFMnps_armv8"
update_latest_release: false

- uses: actions/upload-artifact@v3
if: ${{ matrix.config.run_armv8_build }}
with:
name: SFMnps-armv8
path: SFMnps_armv8

- name: win11 build
if: ${{ matrix.config.run_win11_build }}
run: |
make clean
make -j3 build ARCH=x86-64-modern COMP=$COMP
make strip ARCH=x86-64-modern COMP=$COMP
cp stockfish.exe ../SFMnps_modern.exe
make -j3 profile-build ARCH=x86-64-avx2 COMP=$COMP
make strip ARCH=x86-64-avx2 COMP=$COMP
cp stockfish.exe ../SFDN_avx2.exe
- uses: xresloader/upload-to-github-release@v1
- uses: xresloader/upload-to-github-Release@v1
if: ${{ matrix.config.run_win11_build }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
overwrite: false
file: "SFMnps_modern.exe"
file: "SFDN_avx2.exe"
update_latest_release: false

- uses: actions/upload-artifact@v3
if: ${{ matrix.config.run_win11_build }}
with:
name: SFMnps-modern
path: SFMnps_modern.exe


name: SFDN-avx2
path: SFDN_avx2.exe

0 comments on commit 6722420

Please sign in to comment.