From 088e187d47a8d767e5968553fa9872aecb237c80 Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Sat, 6 Sep 2025 16:58:15 +0200 Subject: [PATCH 1/4] tools: use sparse checkout in `build-tarball.yml` --- .github/workflows/build-tarball.yml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build-tarball.yml b/.github/workflows/build-tarball.yml index aadf4bb8213055..e13a3061b2bb57 100644 --- a/.github/workflows/build-tarball.yml +++ b/.github/workflows/build-tarball.yml @@ -77,9 +77,6 @@ jobs: needs: build-tarball runs-on: ubuntu-24.04 steps: - - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - with: - persist-credentials: false - name: Install Clang ${{ env.CLANG_VERSION }} uses: ./.github/actions/install-clang with: @@ -103,15 +100,19 @@ jobs: run: | tar xzf tarballs/*.tar.gz -C $RUNNER_TEMP echo "TAR_DIR=$RUNNER_TEMP/`basename tarballs/*.tar.gz .tar.gz`" >> $GITHUB_ENV + - name: Build + run: | + make -C "$TAR_DIR" build-ci -j4 V=1 + - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + with: + persist-credentials: false + sparse-checkout: | + tools/eslint + tools/eslint-rules - name: Copy directories needed for testing run: | cp -r tools/eslint $TAR_DIR/tools cp -r tools/eslint-rules $TAR_DIR/tools - - name: Build - run: | - cd $TAR_DIR - make build-ci -j4 V=1 - name: Test run: | - cd $TAR_DIR - make run-ci -j4 V=1 TEST_CI_ARGS="-p dots --measure-flakiness 9" + make -C "$TAR_DIR" run-ci -j4 V=1 TEST_CI_ARGS="-p dots --measure-flakiness 9" From 53461010e945faa4e78c95ed8032bc00eec03f54 Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Sat, 6 Sep 2025 17:06:48 +0200 Subject: [PATCH 2/4] fixup! tools: use sparse checkout in `build-tarball.yml` --- .github/workflows/build-tarball.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-tarball.yml b/.github/workflows/build-tarball.yml index e13a3061b2bb57..c1aac97d384d9f 100644 --- a/.github/workflows/build-tarball.yml +++ b/.github/workflows/build-tarball.yml @@ -77,6 +77,13 @@ jobs: needs: build-tarball runs-on: ubuntu-24.04 steps: + - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + with: + persist-credentials: false + sparse-checkout: | + .github/actions + tools/eslint + tools/eslint-rules - name: Install Clang ${{ env.CLANG_VERSION }} uses: ./.github/actions/install-clang with: @@ -103,12 +110,6 @@ jobs: - name: Build run: | make -C "$TAR_DIR" build-ci -j4 V=1 - - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - with: - persist-credentials: false - sparse-checkout: | - tools/eslint - tools/eslint-rules - name: Copy directories needed for testing run: | cp -r tools/eslint $TAR_DIR/tools From fe2a24f7eda951fd1f4118be93ae0b58b697d246 Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Sun, 7 Sep 2025 09:59:59 +0200 Subject: [PATCH 3/4] fixup! tools: use sparse checkout in `build-tarball.yml` --- .github/workflows/build-tarball.yml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build-tarball.yml b/.github/workflows/build-tarball.yml index c1aac97d384d9f..6066f60e5a8013 100644 --- a/.github/workflows/build-tarball.yml +++ b/.github/workflows/build-tarball.yml @@ -80,10 +80,8 @@ jobs: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 with: persist-credentials: false - sparse-checkout: | - .github/actions - tools/eslint - tools/eslint-rules + sparse-checkout: .github/actions/install-clang + sparse-checkout-cone-mode: false - name: Install Clang ${{ env.CLANG_VERSION }} uses: ./.github/actions/install-clang with: @@ -110,10 +108,16 @@ jobs: - name: Build run: | make -C "$TAR_DIR" build-ci -j4 V=1 - - name: Copy directories needed for testing + - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + with: + persist-credentials: false + sparse-checkout: | + tools/eslint + tools/eslint-rules + - name: Move directories needed for testing run: | - cp -r tools/eslint $TAR_DIR/tools - cp -r tools/eslint-rules $TAR_DIR/tools + mv tools/eslint $TAR_DIR/tools + mv tools/eslint-rules $TAR_DIR/tools - name: Test run: | make -C "$TAR_DIR" run-ci -j4 V=1 TEST_CI_ARGS="-p dots --measure-flakiness 9" From 5e940e55ff3fb0565a46d9508bb80e76dc069d93 Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Mon, 8 Sep 2025 10:31:02 +0200 Subject: [PATCH 4/4] fixup! tools: use sparse checkout in `build-tarball.yml` --- .github/workflows/build-tarball.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-tarball.yml b/.github/workflows/build-tarball.yml index 6066f60e5a8013..1a61fce881116e 100644 --- a/.github/workflows/build-tarball.yml +++ b/.github/workflows/build-tarball.yml @@ -116,8 +116,8 @@ jobs: tools/eslint-rules - name: Move directories needed for testing run: | - mv tools/eslint $TAR_DIR/tools - mv tools/eslint-rules $TAR_DIR/tools + mv tools/eslint "$TAR_DIR/tools" + mv tools/eslint-rules "$TAR_DIR/tools" - name: Test run: | make -C "$TAR_DIR" run-ci -j4 V=1 TEST_CI_ARGS="-p dots --measure-flakiness 9"