From 030480393dfc171c8fd494c471044bd1625043a8 Mon Sep 17 00:00:00 2001 From: Brice Goglin Date: Tue, 28 Nov 2023 15:10:19 +0100 Subject: [PATCH] use a sparse checkout of the main repo to get the script It's not in the tarball Signed-off-by: Brice Goglin --- .github/workflows/buildcheck.yaml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/buildcheck.yaml b/.github/workflows/buildcheck.yaml index c6a2c4b7e..691a331a5 100644 --- a/.github/workflows/buildcheck.yaml +++ b/.github/workflows/buildcheck.yaml @@ -44,12 +44,18 @@ jobs: run: | sudo apt update sudo apt install -y --no-install-recommends pkg-config libcairo2-dev libxml2-dev + - uses: actions/checkout@v4 + with: + sparse-checkout: '.github/workflows' + sparse-checkout-cone-mode: false - name: Download tarball uses: actions/download-artifact@v3 with: name: Tarball - name: Extract, build and check - run: $GITHUB_WORKSPACE/.github/workflows/job-1-check.sh hwloc-*.tar.gz + run: | + ls -la + $GITHUB_WORKSPACE/.github/workflows/job-1-check.sh hwloc-*.tar.gz check-tarball-gh-macos-latest: name: Check tarball on GH macos-latest needs: build-tarball @@ -59,12 +65,18 @@ jobs: run: | brew install pkg-config brew install cairo + - uses: actions/checkout@v4 + with: + sparse-checkout: '.github/workflows' + sparse-checkout-cone-mode: false - name: Download tarball uses: actions/download-artifact@v3 with: name: Tarball - name: Extract, build and check - run: $GITHUB_WORKSPACE/.github/workflows/job-1-check.sh hwloc-*.tar.gz + run: | + ls -la + $GITHUB_WORKSPACE/.github/workflows/job-1-check.sh hwloc-*.tar.gz # check-tarball: # name: Check tarball on GH runners # needs: build-tarball