Add universal binaries to prerelease page

closes https://github.com/official-stockfish/Stockfish/pull/6744

No functional change
This commit is contained in:
anematode
2026-04-19 11:09:24 +02:00
committed by Joost VandeVondele
parent ce7848f7cc
commit 1e333b341c
3 changed files with 47 additions and 2 deletions
+18
View File
@@ -0,0 +1,18 @@
{
"config": [
{
"name": "Ubuntu 22.04 GCC Universal",
"os": "ubuntu-22.04",
"simple_name": "ubuntu",
"archive_ext": "tar"
},
{
"name": "Windows 2022 Mingw-w64 GCC Universal",
"os": "windows-2022",
"simple_name": "windows",
"ext": ".exe",
"archive_ext": "zip"
}
],
"binaries": ["x86-64-universal"]
}
+14 -2
View File
@@ -135,11 +135,17 @@ jobs:
- name: Check arch selection under SDE - name: Check arch selection under SDE
run: ./scripts/check_universal.sh ./stockfish-ubuntu-x86-64-universal "$SDE_DIR/sde" "$benchref" run: ./scripts/check_universal.sh ./stockfish-ubuntu-x86-64-universal "$SDE_DIR/sde" "$benchref"
- name: Remove non src files
run: git -C src clean -fx
- name: Upload artifact for (pre)-release - name: Upload artifact for (pre)-release
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: ubuntu x86-64-universal name: ubuntu x86-64-universal
path: stockfish-ubuntu-x86-64-universal path: |
.
!.git
!.output
UniversalWindows: UniversalWindows:
name: Windows x86-64 Universal name: Windows x86-64 Universal
@@ -186,8 +192,14 @@ jobs:
- name: Check arch selection under SDE - name: Check arch selection under SDE
run: ./scripts/check_universal.sh ./stockfish-windows-x86-64-universal.exe "$SDE_DIR/sde" "$benchref" run: ./scripts/check_universal.sh ./stockfish-windows-x86-64-universal.exe "$SDE_DIR/sde" "$benchref"
- name: Remove non src files
run: git -C src clean -fx
- name: Upload artifact for (pre)-release - name: Upload artifact for (pre)-release
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: windows x86-64-universal name: windows x86-64-universal
path: stockfish-windows-x86-64-universal.exe path: |
.
!.git
!.output
+15
View File
@@ -78,6 +78,7 @@ jobs:
outputs: outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }} matrix: ${{ steps.set-matrix.outputs.matrix }}
arm_matrix: ${{ steps.set-arm-matrix.outputs.arm_matrix }} arm_matrix: ${{ steps.set-arm-matrix.outputs.arm_matrix }}
universal_matrix: ${{ steps.set-universal-matrix.outputs.universal_matrix }}
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
@@ -90,6 +91,10 @@ jobs:
run: | run: |
TASKS_ARM=$(echo $(cat .github/ci/arm_matrix.json) ) TASKS_ARM=$(echo $(cat .github/ci/arm_matrix.json) )
echo "ARM_MATRIX=$TASKS_ARM" >> $GITHUB_OUTPUT echo "ARM_MATRIX=$TASKS_ARM" >> $GITHUB_OUTPUT
- id: set-universal-matrix
run: |
TASKS_UNIVERSAL=$(echo $(cat .github/ci/universal_matrix.json) )
echo "UNIVERSAL_MATRIX=$TASKS_UNIVERSAL" >> $GITHUB_OUTPUT
# Testing Jobs # Testing Jobs
IWYU: IWYU:
uses: ./.github/workflows/iwyu.yml uses: ./.github/workflows/iwyu.yml
@@ -139,3 +144,13 @@ jobs:
contents: write # For deleting/creating a (pre)release contents: write # For deleting/creating a (pre)release
secrets: secrets:
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}
Universal_Binaries:
if: github.repository == 'official-stockfish/Stockfish'
needs: [Prerelease, Matrix, Compilation]
uses: ./.github/workflows/upload_binaries.yml
with:
matrix: ${{ needs.Matrix.outputs.universal_matrix }}
permissions:
contents: write # For deleting/creating a (pre)release
secrets:
token: ${{ secrets.GITHUB_TOKEN }}