Skip to content

Commit 371e220

Browse files
committed
actually clone the repo
1 parent d770f71 commit 371e220

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

.github/workflows/zstd.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,24 @@ jobs:
8585
compression-level: 9 # Prefer smaller downloads over a shorter workflow runtime
8686

8787
build-musl:
88-
name: Build zstd on musl
88+
name: Build zstd (alpine-musl)
8989
runs-on: ubuntu-latest
9090

9191
# We sadly cant use a matrix to run x64 and ARM64, because it would give use 2 artifacts
9292
steps:
93+
- name: Clone zstd repo
94+
uses: actions/checkout@v4.2.2
95+
with:
96+
repository: facebook/zstd
97+
submodules: recursive
98+
99+
- name: Checkout latest Tag
100+
shell: bash
101+
run: |
102+
git fetch --tags
103+
LATEST_TAG=$(git tag | grep -E ^v[0-9]+.[0-9]+.[0-9]+$ | tail -1)
104+
git checkout "$LATEST_TAG"
105+
93106
- name: Setup Alpine Linux for x64
94107
uses: jirutka/setup-alpine@v1
95108
with:
@@ -140,7 +153,7 @@ jobs:
140153
- name: Publish Artifacts
141154
uses: actions/upload-artifact@v4.4.3
142155
with:
143-
name: zstd-ubuntu-latest-musl
156+
name: zstd-alpine-latest
144157
path: output
145158
compression-level: 9 # Prefer smaller downloads over a shorter workflow runtime
146159

0 commit comments

Comments
 (0)