mirror of
https://github.com/official-stockfish/Stockfish.git
synced 2026-07-22 12:47:08 +00:00
Universal builds for Android armv8 and compatibility with older compilers
- We add a new path for supporting universal builds without #embed . `xxd` causes the compiler to run out of memory, so instead we embed it as a string literal created at compile time.
- This file is created in `net.sh`, and only if `--embed-dir` isn't supported + we are doing a universal build.
- This was necessary because Android NDK seems to not support embed, idk why
- A couple other Makefile tweaks were necessary for the Android path.
- While we're at it, remove the non-universal arm64 windows and android binaries.
closes https://github.com/official-stockfish/Stockfish/pull/6827
No functional change
This commit is contained in:
committed by
Joost VandeVondele
parent
319d61effd
commit
24abab9f6c
@@ -86,7 +86,7 @@ jobs:
|
||||
mv ./stockfish$EXT ../stockfish-android-$BINARY$EXT
|
||||
|
||||
- name: Remove non src files
|
||||
run: git clean -fx
|
||||
run: git clean -fxd
|
||||
|
||||
- name: Upload artifact for (pre)-release
|
||||
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
||||
|
||||
@@ -82,7 +82,7 @@ jobs:
|
||||
mv ./stockfish$EXT ../stockfish-$NAME-$BINARY$EXT
|
||||
|
||||
- name: Remove non src files
|
||||
run: git clean -fx
|
||||
run: git clean -fxd
|
||||
|
||||
- name: Upload artifact for (pre)-release
|
||||
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
||||
|
||||
@@ -21,7 +21,7 @@ jobs:
|
||||
name: Prerelease
|
||||
if: github.repository == 'official-stockfish/Stockfish' && (github.ref == 'refs/heads/master' || (startsWith(github.ref_name, 'sf_') && github.ref_type == 'tag'))
|
||||
runs-on: ubuntu-latest
|
||||
needs: [Matrix, Compilation, WindowsARMCompilation, ARMCompilation, UniversalCompilation]
|
||||
needs: [Matrix, Compilation, ARMCompilation, UniversalCompilation]
|
||||
permissions:
|
||||
contents: write # For deleting/creating a prerelease
|
||||
steps:
|
||||
@@ -113,7 +113,6 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
macos_matrix: ${{ steps.set-macos-matrix.outputs.macos_matrix }}
|
||||
windows_arm_matrix: ${{ steps.set-windows-arm-matrix.outputs.windows_arm_matrix }}
|
||||
arm_matrix: ${{ steps.set-arm-matrix.outputs.arm_matrix }}
|
||||
universal_matrix: ${{ steps.set-universal-matrix.outputs.universal_matrix }}
|
||||
steps:
|
||||
@@ -124,10 +123,6 @@ jobs:
|
||||
run: |
|
||||
MACOS_MATRIX=$(jq -c '.' .github/ci/macos_matrix.json)
|
||||
echo "MACOS_MATRIX=$MACOS_MATRIX" >> $GITHUB_OUTPUT
|
||||
- id: set-windows-arm-matrix
|
||||
run: |
|
||||
WINDOWS_ARM_MATRIX=$(jq -c '.' .github/ci/windows_arm_matrix.json)
|
||||
echo "WINDOWS_ARM_MATRIX=$WINDOWS_ARM_MATRIX" >> $GITHUB_OUTPUT
|
||||
- id: set-arm-matrix
|
||||
run: |
|
||||
ARM_MATRIX=$(jq -c '.' .github/ci/arm_matrix.json)
|
||||
@@ -167,12 +162,6 @@ jobs:
|
||||
uses: ./.github/workflows/compilation.yml
|
||||
with:
|
||||
matrix: ${{ needs.Matrix.outputs.macos_matrix }}
|
||||
WindowsARMCompilation:
|
||||
name: Windows ARM builds
|
||||
needs: [Matrix, Sanitizers, Tests, Matetrack, Games, CompilerCheck]
|
||||
uses: ./.github/workflows/compilation.yml
|
||||
with:
|
||||
matrix: ${{ needs.Matrix.outputs.windows_arm_matrix }}
|
||||
ARMCompilation:
|
||||
name: Android builds
|
||||
needs: [Matrix, Sanitizers, Tests, Matetrack, Games, CompilerCheck]
|
||||
@@ -194,17 +183,6 @@ jobs:
|
||||
contents: write # For deleting/creating a (pre)release
|
||||
secrets:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
WindowsARM_Binaries:
|
||||
if: github.repository == 'official-stockfish/Stockfish'
|
||||
name: Windows ARM uploads
|
||||
needs: [Prerelease, Matrix]
|
||||
uses: ./.github/workflows/upload_binaries.yml
|
||||
with:
|
||||
matrix: ${{ needs.Matrix.outputs.windows_arm_matrix }}
|
||||
permissions:
|
||||
contents: write # For deleting/creating a (pre)release
|
||||
secrets:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
ARM_Binaries:
|
||||
if: github.repository == 'official-stockfish/Stockfish'
|
||||
name: Android uploads
|
||||
|
||||
@@ -45,7 +45,7 @@ jobs:
|
||||
run: ./scripts/check_universal.sh ./stockfish-linux-x86-64-universal "$SDE_DIR/sde" "$benchref"
|
||||
|
||||
- name: Remove non-src files
|
||||
run: git clean -fx -- src
|
||||
run: git clean -fxd -- src
|
||||
|
||||
- name: Upload artifact for (pre)-release
|
||||
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
||||
@@ -102,7 +102,7 @@ jobs:
|
||||
run: ./scripts/check_universal.sh ./stockfish-windows-x86-64-universal.exe "$SDE_DIR/sde" "$benchref"
|
||||
|
||||
- name: Remove non-src files
|
||||
run: git clean -fx -- src
|
||||
run: git clean -fxd -- src
|
||||
|
||||
- name: Upload artifact for (pre)-release
|
||||
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
||||
@@ -155,7 +155,7 @@ jobs:
|
||||
run: ./scripts/check_universal_arm.sh ./stockfish-linux-arm64-universal "$benchref"
|
||||
|
||||
- name: Remove non-src files
|
||||
run: git clean -fx -- src
|
||||
run: git clean -fxd -- src
|
||||
|
||||
- name: Upload artifact for (pre)-release
|
||||
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
||||
@@ -207,7 +207,7 @@ jobs:
|
||||
run: mv src/stockfish.exe stockfish-windows-arm64-universal.exe
|
||||
|
||||
- name: Remove non-src files
|
||||
run: git clean -fx -- src
|
||||
run: git clean -fxd -- src
|
||||
|
||||
- name: Upload artifact for (pre)-release
|
||||
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
||||
|
||||
Reference in New Issue
Block a user