mirror of
https://github.com/official-stockfish/Stockfish.git
synced 2026-07-22 12:47:08 +00:00
CI: limit artifact uploads
do not upload some unneeded intermediate directories, disable running authenticated git commands with the checkout action. Thanks to Yaron A for the report. closes https://github.com/official-stockfish/Stockfish/pull/5435 No functional change
This commit is contained in:
@@ -26,6 +26,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
persist-credentials: false
|
||||||
|
|
||||||
- name: Download required linux packages
|
- name: Download required linux packages
|
||||||
if: runner.os == 'Linux'
|
if: runner.os == 'Linux'
|
||||||
@@ -91,4 +92,7 @@ jobs:
|
|||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.config.simple_name }} ${{ matrix.binaries }}
|
name: ${{ matrix.config.simple_name }} ${{ matrix.binaries }}
|
||||||
path: .
|
path: |
|
||||||
|
.
|
||||||
|
!.git
|
||||||
|
!.output
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
ref: ${{ github.event.pull_request.head.sha }}
|
ref: ${{ github.event.pull_request.head.sha }}
|
||||||
|
persist-credentials: false
|
||||||
|
|
||||||
- name: Run clang-format style check
|
- name: Run clang-format style check
|
||||||
uses: jidicula/clang-format-action@f62da5e3d3a2d88ff364771d9d938773a618ab5e # @v4.11.0
|
uses: jidicula/clang-format-action@f62da5e3d3a2d88ff364771d9d938773a618ab5e # @v4.11.0
|
||||||
|
|||||||
@@ -30,6 +30,8 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
|
||||||
# Initializes the CodeQL tools for scanning.
|
# Initializes the CodeQL tools for scanning.
|
||||||
- name: Initialize CodeQL
|
- name: Initialize CodeQL
|
||||||
|
|||||||
@@ -25,6 +25,8 @@ jobs:
|
|||||||
shell: ${{ matrix.config.shell }}
|
shell: ${{ matrix.config.shell }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
|
||||||
- name: Install fixed GCC on Linux
|
- name: Install fixed GCC on Linux
|
||||||
if: runner.os == 'Linux'
|
if: runner.os == 'Linux'
|
||||||
@@ -86,4 +88,7 @@ jobs:
|
|||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.config.simple_name }} ${{ matrix.binaries }}
|
name: ${{ matrix.config.simple_name }} ${{ matrix.binaries }}
|
||||||
path: .
|
path: |
|
||||||
|
.
|
||||||
|
!.git
|
||||||
|
!.output
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
ref: ${{ github.event.pull_request.head.sha }}
|
ref: ${{ github.event.pull_request.head.sha }}
|
||||||
path: Stockfish
|
path: Stockfish
|
||||||
|
persist-credentials: false
|
||||||
|
|
||||||
- name: build debug enabled version of SF
|
- name: build debug enabled version of SF
|
||||||
working-directory: Stockfish/src
|
working-directory: Stockfish/src
|
||||||
@@ -24,6 +25,7 @@ jobs:
|
|||||||
repository: Disservin/fast-chess
|
repository: Disservin/fast-chess
|
||||||
path: fast-chess
|
path: fast-chess
|
||||||
ref: d54af1910d5479c669dc731f1f54f9108a251951
|
ref: d54af1910d5479c669dc731f1f54f9108a251951
|
||||||
|
persist-credentials: false
|
||||||
|
|
||||||
- name: fast-chess build
|
- name: fast-chess build
|
||||||
working-directory: fast-chess
|
working-directory: fast-chess
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ jobs:
|
|||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
path: Stockfish
|
path: Stockfish
|
||||||
|
persist-credentials: false
|
||||||
|
|
||||||
- name: Checkout include-what-you-use
|
- name: Checkout include-what-you-use
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -21,6 +22,7 @@ jobs:
|
|||||||
repository: include-what-you-use/include-what-you-use
|
repository: include-what-you-use/include-what-you-use
|
||||||
ref: f25caa280dc3277c4086ec345ad279a2463fea0f
|
ref: f25caa280dc3277c4086ec345ad279a2463fea0f
|
||||||
path: include-what-you-use
|
path: include-what-you-use
|
||||||
|
persist-credentials: false
|
||||||
|
|
||||||
- name: Download required linux packages
|
- name: Download required linux packages
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
ref: ${{ github.event.pull_request.head.sha }}
|
ref: ${{ github.event.pull_request.head.sha }}
|
||||||
path: Stockfish
|
path: Stockfish
|
||||||
|
persist-credentials: false
|
||||||
|
|
||||||
- name: build SF
|
- name: build SF
|
||||||
working-directory: Stockfish/src
|
working-directory: Stockfish/src
|
||||||
@@ -24,6 +25,7 @@ jobs:
|
|||||||
repository: vondele/matetrack
|
repository: vondele/matetrack
|
||||||
path: matetrack
|
path: matetrack
|
||||||
ref: 20287a1a145f30a166b7ef251eddb611e4e44fbf
|
ref: 20287a1a145f30a166b7ef251eddb611e4e44fbf
|
||||||
|
persist-credentials: false
|
||||||
|
|
||||||
- name: matetrack install deps
|
- name: matetrack install deps
|
||||||
working-directory: matetrack
|
working-directory: matetrack
|
||||||
|
|||||||
@@ -40,6 +40,8 @@ jobs:
|
|||||||
shell: ${{ matrix.config.shell }}
|
shell: ${{ matrix.config.shell }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
|
||||||
- name: Download required linux packages
|
- name: Download required linux packages
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -17,6 +17,8 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
|
||||||
# returns null if no pre-release exists
|
# returns null if no pre-release exists
|
||||||
- name: Get Commit SHA of Latest Pre-release
|
- name: Get Commit SHA of Latest Pre-release
|
||||||
@@ -66,6 +68,8 @@ jobs:
|
|||||||
arm_matrix: ${{ steps.set-arm-matrix.outputs.arm_matrix }}
|
arm_matrix: ${{ steps.set-arm-matrix.outputs.arm_matrix }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
- id: set-matrix
|
- id: set-matrix
|
||||||
run: |
|
run: |
|
||||||
TASKS=$(echo $(cat .github/ci/matrix.json) )
|
TASKS=$(echo $(cat .github/ci/matrix.json) )
|
||||||
|
|||||||
@@ -106,6 +106,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
persist-credentials: false
|
||||||
|
|
||||||
- name: Download required linux packages
|
- name: Download required linux packages
|
||||||
if: runner.os == 'Linux'
|
if: runner.os == 'Linux'
|
||||||
|
|||||||
@@ -25,6 +25,8 @@ jobs:
|
|||||||
shell: ${{ matrix.config.shell }}
|
shell: ${{ matrix.config.shell }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
|
||||||
- name: Download artifact from compilation
|
- name: Download artifact from compilation
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
|
|||||||
Reference in New Issue
Block a user