mirror of
https://github.com/official-stockfish/Stockfish.git
synced 2026-07-22 20:57:10 +00:00
Update GitHub workflows
- Use the latest version of the actions - Use commit hash for actions from little providers - Update Intel SDE to 9.27 closes https://github.com/official-stockfish/Stockfish/pull/4900 No functional change
This commit is contained in:
@@ -29,7 +29,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
# Initializes the CodeQL tools for scanning.
|
# Initializes the CodeQL tools for scanning.
|
||||||
- name: Initialize CodeQL
|
- name: Initialize CodeQL
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ jobs:
|
|||||||
echo "COMMIT_SHA=$(jq -r 'map(select(.prerelease)) | first | .tag_name' <<< $(curl -s https://api.github.com/repos/${{ github.repository_owner }}/Stockfish/releases))" >> $GITHUB_ENV
|
echo "COMMIT_SHA=$(jq -r 'map(select(.prerelease)) | first | .tag_name' <<< $(curl -s https://api.github.com/repos/${{ github.repository_owner }}/Stockfish/releases))" >> $GITHUB_ENV
|
||||||
|
|
||||||
# delete old previous pre-release and tag
|
# delete old previous pre-release and tag
|
||||||
- uses: dev-drprasad/delete-tag-and-release@v0.2.1
|
- uses: dev-drprasad/delete-tag-and-release@8cd619d00037e4aeb781909c9a6b03940507d0da # @v1.0.1
|
||||||
if: env.COMMIT_SHA != 'null'
|
if: env.COMMIT_SHA != 'null'
|
||||||
with:
|
with:
|
||||||
tag_name: ${{ env.COMMIT_SHA }}
|
tag_name: ${{ env.COMMIT_SHA }}
|
||||||
|
|||||||
@@ -11,12 +11,12 @@ jobs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Stockfish
|
- name: Checkout Stockfish
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
path: Stockfish
|
path: Stockfish
|
||||||
|
|
||||||
- name: Checkout include-what-you-use
|
- name: Checkout include-what-you-use
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
repository: include-what-you-use/include-what-you-use
|
repository: include-what-you-use/include-what-you-use
|
||||||
ref: f25caa280dc3277c4086ec345ad279a2463fea0f
|
ref: f25caa280dc3277c4086ec345ad279a2463fea0f
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ jobs:
|
|||||||
working-directory: src
|
working-directory: src
|
||||||
shell: ${{ matrix.config.shell }}
|
shell: ${{ matrix.config.shell }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
@@ -139,7 +139,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Release
|
- name: Release
|
||||||
if: startsWith(github.ref_name, 'sf_') && github.ref_type == 'tag'
|
if: startsWith(github.ref_name, 'sf_') && github.ref_type == 'tag'
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # @v1
|
||||||
with:
|
with:
|
||||||
files: stockfish-android-${{ matrix.binaries }}.tar
|
files: stockfish-android-${{ matrix.binaries }}.tar
|
||||||
|
|
||||||
@@ -162,7 +162,7 @@ jobs:
|
|||||||
- name: Prerelease
|
- name: Prerelease
|
||||||
if: github.ref_name == 'master' && env.CHANGES == '0'
|
if: github.ref_name == 'master' && env.CHANGES == '0'
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # @v1
|
||||||
with:
|
with:
|
||||||
name: Stockfish dev-${{ env.COMMIT_DATE }}-${{ env.COMMIT_SHA }}
|
name: Stockfish dev-${{ env.COMMIT_DATE }}-${{ env.COMMIT_SHA }}
|
||||||
tag_name: stockfish-dev-${{ env.COMMIT_DATE }}-${{ env.COMMIT_SHA }}
|
tag_name: stockfish-dev-${{ env.COMMIT_DATE }}-${{ env.COMMIT_SHA }}
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ jobs:
|
|||||||
comp: gcc
|
comp: gcc
|
||||||
shell: bash
|
shell: bash
|
||||||
archive_ext: tar
|
archive_ext: tar
|
||||||
sde: /home/runner/work/Stockfish/Stockfish/.output/sde-temp-files/sde-external-9.14.0-2022-10-25-lin/sde -future --
|
sde: /home/runner/work/Stockfish/Stockfish/.output/sde-temp-files/sde-external-9.27.0-2023-09-13-lin/sde -future --
|
||||||
- name: MacOS 13 Apple Clang
|
- name: MacOS 13 Apple Clang
|
||||||
os: macos-13
|
os: macos-13
|
||||||
simple_name: macos
|
simple_name: macos
|
||||||
@@ -40,7 +40,7 @@ jobs:
|
|||||||
msys_env: x86_64-gcc
|
msys_env: x86_64-gcc
|
||||||
shell: msys2 {0}
|
shell: msys2 {0}
|
||||||
ext: .exe
|
ext: .exe
|
||||||
sde: /d/a/Stockfish/Stockfish/.output/sde-temp-files/sde-external-9.14.0-2022-10-25-win/sde.exe -future --
|
sde: /d/a/Stockfish/Stockfish/.output/sde-temp-files/sde-external-9.27.0-2023-09-13-win/sde.exe -future --
|
||||||
archive_ext: zip
|
archive_ext: zip
|
||||||
binaries:
|
binaries:
|
||||||
- x86-64
|
- x86-64
|
||||||
@@ -67,7 +67,7 @@ jobs:
|
|||||||
working-directory: src
|
working-directory: src
|
||||||
shell: ${{ matrix.config.shell }}
|
shell: ${{ matrix.config.shell }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
@@ -77,7 +77,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Install fixed GCC on Linux
|
- name: Install fixed GCC on Linux
|
||||||
if: runner.os == 'Linux'
|
if: runner.os == 'Linux'
|
||||||
uses: egor-tensin/setup-gcc@v1
|
uses: egor-tensin/setup-gcc@eaa888eb19115a521fa72b65cd94fe1f25bbcaac # @v1.3
|
||||||
with:
|
with:
|
||||||
version: 11
|
version: 11
|
||||||
|
|
||||||
@@ -90,10 +90,10 @@ jobs:
|
|||||||
|
|
||||||
- name: Download SDE package
|
- name: Download SDE package
|
||||||
if: runner.os == 'Linux' || runner.os == 'Windows'
|
if: runner.os == 'Linux' || runner.os == 'Windows'
|
||||||
uses: petarpetrovt/setup-sde@6f4926100f31791716b11d25c0f3f35809d44f84
|
uses: petarpetrovt/setup-sde@91a1a03434384e064706634125a15f7446d2aafb # @v2.3
|
||||||
with:
|
with:
|
||||||
environmentVariableName: SDE_DIR
|
environmentVariableName: SDE_DIR
|
||||||
sdeVersion: 9.14.0
|
sdeVersion: 9.27.0
|
||||||
|
|
||||||
- name: Download the used network from the fishtest framework
|
- name: Download the used network from the fishtest framework
|
||||||
run: make net
|
run: make net
|
||||||
@@ -183,7 +183,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Release
|
- name: Release
|
||||||
if: startsWith(github.ref_name, 'sf_') && github.ref_type == 'tag'
|
if: startsWith(github.ref_name, 'sf_') && github.ref_type == 'tag'
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # @v1
|
||||||
with:
|
with:
|
||||||
files: stockfish-${{ matrix.config.simple_name }}-${{ matrix.binaries }}.${{ matrix.config.archive_ext }}
|
files: stockfish-${{ matrix.config.simple_name }}-${{ matrix.binaries }}.${{ matrix.config.archive_ext }}
|
||||||
|
|
||||||
@@ -206,7 +206,7 @@ jobs:
|
|||||||
- name: Prerelease
|
- name: Prerelease
|
||||||
if: github.ref_name == 'master' && env.CHANGES == '0'
|
if: github.ref_name == 'master' && env.CHANGES == '0'
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # @v1
|
||||||
with:
|
with:
|
||||||
name: Stockfish dev-${{ env.COMMIT_DATE }}-${{ env.COMMIT_SHA }}
|
name: Stockfish dev-${{ env.COMMIT_DATE }}-${{ env.COMMIT_SHA }}
|
||||||
tag_name: stockfish-dev-${{ env.COMMIT_DATE }}-${{ env.COMMIT_SHA }}
|
tag_name: stockfish-dev-${{ env.COMMIT_DATE }}-${{ env.COMMIT_SHA }}
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ jobs:
|
|||||||
working-directory: src
|
working-directory: src
|
||||||
shell: ${{ matrix.config.shell }}
|
shell: ${{ matrix.config.shell }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Setup msys and install required packages
|
- name: Setup msys and install required packages
|
||||||
if: runner.os == 'Windows'
|
if: runner.os == 'Windows'
|
||||||
|
|||||||
@@ -16,12 +16,12 @@ jobs:
|
|||||||
name: clang-format check
|
name: clang-format check
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
ref: ${{ github.event.pull_request.head.sha }}
|
ref: ${{ github.event.pull_request.head.sha }}
|
||||||
|
|
||||||
- name: Run clang-format style check
|
- name: Run clang-format style check
|
||||||
uses: jidicula/clang-format-action@f62da5e3d3a2d88ff364771d9d938773a618ab5e
|
uses: jidicula/clang-format-action@f62da5e3d3a2d88ff364771d9d938773a618ab5e # @v4.11.0
|
||||||
id: clang-format
|
id: clang-format
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
with:
|
with:
|
||||||
@@ -30,7 +30,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Comment on PR
|
- name: Comment on PR
|
||||||
if: steps.clang-format.outcome == 'failure'
|
if: steps.clang-format.outcome == 'failure'
|
||||||
uses: thollander/actions-comment-pull-request@1d3973dc4b8e1399c0620d3f2b1aa5e795465308
|
uses: thollander/actions-comment-pull-request@1d3973dc4b8e1399c0620d3f2b1aa5e795465308 # @v2.4.3
|
||||||
with:
|
with:
|
||||||
message: |
|
message: |
|
||||||
clang-format 17 needs to be run on this PR.
|
clang-format 17 needs to be run on this PR.
|
||||||
@@ -42,7 +42,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Comment on PR
|
- name: Comment on PR
|
||||||
if: steps.clang-format.outcome != 'failure'
|
if: steps.clang-format.outcome != 'failure'
|
||||||
uses: thollander/actions-comment-pull-request@1d3973dc4b8e1399c0620d3f2b1aa5e795465308
|
uses: thollander/actions-comment-pull-request@1d3973dc4b8e1399c0620d3f2b1aa5e795465308 # @v2.4.3
|
||||||
with:
|
with:
|
||||||
message: |
|
message: |
|
||||||
_(execution **${{ github.run_id }}** / attempt **${{ github.run_attempt }}**)_
|
_(execution **${{ github.run_id }}** / attempt **${{ github.run_attempt }}**)_
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ jobs:
|
|||||||
working-directory: src
|
working-directory: src
|
||||||
shell: ${{ matrix.config.shell }}
|
shell: ${{ matrix.config.shell }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Download required linux packages
|
- name: Download required linux packages
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ jobs:
|
|||||||
working-directory: src
|
working-directory: src
|
||||||
shell: ${{ matrix.config.shell }}
|
shell: ${{ matrix.config.shell }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
@@ -121,11 +121,11 @@ jobs:
|
|||||||
|
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
if: matrix.config.base_image
|
if: matrix.config.base_image
|
||||||
uses: docker/setup-qemu-action@v2
|
uses: docker/setup-qemu-action@v3
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
if: matrix.config.base_image
|
if: matrix.config.base_image
|
||||||
uses: docker/setup-buildx-action@v2
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
- name: Build Docker container
|
- name: Build Docker container
|
||||||
if: matrix.config.base_image
|
if: matrix.config.base_image
|
||||||
|
|||||||
Reference in New Issue
Block a user