Skip to content
This repository was archived by the owner on Nov 19, 2025. It is now read-only.

Commit f0f1597

Browse files
Use git clone for zlib source
1 parent 5b6dfe2 commit f0f1597

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,17 @@ jobs:
107107
ref: c47ad25ea3b484e10326f933e927c0bc8cded3da # patched 1.2.5 version
108108
path: musl
109109
clean: false
110+
- name: Checkout zlib
111+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2
112+
with:
113+
repository: madler/zlib
114+
ref: v1.2.13
115+
path: zlib-1.2.13
116+
clean: false
110117
- name: Install musl
111118
run: |
112119
# See https://www.graalvm.org/latest/reference-manual/native-image/guides/build-static-executables/
120+
# We have to build MUSL from source due to ensure recent CVEs are patched
113121
114122
# Build musl from source
115123
pushd musl
@@ -126,8 +134,6 @@ jobs:
126134
x86_64-linux-musl-gcc --version
127135
128136
# Build zlib with musl from source and install into the MUSL_HOME directory
129-
curl -O https://zlib.net/fossils/zlib-1.2.13.tar.gz
130-
tar -xzvf zlib-1.2.13.tar.gz
131137
pushd zlib-1.2.13
132138
CC=musl-gcc ./configure --prefix=$MUSL_HOME --static
133139
make && make install

0 commit comments

Comments
 (0)