Skip to content

Commit 427cafa

Browse files
committed
use a sparse checkout of the main repo to get the script
It's not in the tarball Signed-off-by: Brice Goglin <[email protected]>
1 parent 802b026 commit 427cafa

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.github/workflows/buildcheck.yaml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,17 @@ jobs:
4444
run: |
4545
sudo apt update
4646
sudo apt install -y --no-install-recommends pkg-config libcairo2-dev libxml2-dev
47+
- uses: actions/checkout@v4
48+
with:
49+
sparse-checkout: '.github/workflows'
50+
sparse-checkout-cone-mode: false
4751
- name: Download tarball
4852
uses: actions/download-artifact@v3
4953
with:
5054
name: Tarball
5155
- name: Extract, build and check
52-
run: $GITHUB_WORKSPACE/.github/workflows/job-1-check.sh hwloc-*.tar.gz
56+
run: |
57+
$GITHUB_WORKSPACE/.github/workflows/job-1-check.sh hwloc-*.tar.gz
5358
check-tarball-gh-macos-latest:
5459
name: Check tarball on GH macos-latest
5560
needs: build-tarball
@@ -59,12 +64,17 @@ jobs:
5964
run: |
6065
brew install pkg-config
6166
brew install cairo
67+
- uses: actions/checkout@v4
68+
with:
69+
sparse-checkout: '.github/workflows'
70+
sparse-checkout-cone-mode: false
6271
- name: Download tarball
6372
uses: actions/download-artifact@v3
6473
with:
6574
name: Tarball
6675
- name: Extract, build and check
67-
run: $GITHUB_WORKSPACE/.github/workflows/job-1-check.sh hwloc-*.tar.gz
76+
run: |
77+
$GITHUB_WORKSPACE/.github/workflows/job-1-check.sh hwloc-*.tar.gz
6878
# check-tarball:
6979
# name: Check tarball on GH runners
7080
# needs: build-tarball

0 commit comments

Comments
 (0)