1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-29 16:23:09 +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:
Joost VandeVondele 2024-07-03 11:14:41 +02:00
parent b9ff5bb93b
commit ee6fc7e38b
11 changed files with 29 additions and 2 deletions

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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: |

View file

@ -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

View file

@ -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: |

View file

@ -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) )

View file

@ -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'

View file

@ -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