8888 env :
8989 NODE_VERSION : ' 20.x'
9090 FORCE_COLOR : ' 1'
91+ MUSL_HOME : ${{ github.workspace }}/musl-toolchain
9192 steps :
9293 - name : Setup Java
9394 uses : actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
@@ -109,7 +110,6 @@ jobs:
109110 - name : Install musl
110111 run : |
111112 # See https://www.graalvm.org/latest/reference-manual/native-image/guides/build-static-executables/
112- export MUSL_HOME=$PWD/musl-toolchain
113113
114114 # Build musl from source
115115 pushd musl
@@ -122,6 +122,7 @@ jobs:
122122
123123 # Extend the system path and confirm that musl is available by printing its version
124124 export PATH="$MUSL_HOME/bin:$PATH"
125+ echo "$path" >> $GITHUB_PATH
125126 x86_64-linux-musl-gcc --version
126127
127128 # Build zlib with musl from source and install into the MUSL_HOME directory
@@ -191,6 +192,7 @@ jobs:
191192 env :
192193 NODE_VERSION : ' 20.x'
193194 FORCE_COLOR : ' 1'
195+ MUSL_HOME : ${{ github.workspace }}/musl-toolchain
194196 steps :
195197 - name : Setup Java
196198 uses : actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
@@ -212,20 +214,19 @@ jobs:
212214 - name : Install musl
213215 run : |
214216 # See https://www.graalvm.org/latest/reference-manual/native-image/guides/build-static-executables/
215- export MUSL_HOME=$PWD/musl-toolchain
216-
217217 # Build musl from source
218218 pushd musl
219219 ./configure --prefix=$MUSL_HOME --static
220220 sudo make && make install
221221 popd
222222
223223 # Install a symlink for use by native-image
224- ln -s $MUSL_HOME/bin/musl-gcc $MUSL_HOME/bin/arm64 -linux-musl-gcc
224+ ln -s $MUSL_HOME/bin/musl-gcc $MUSL_HOME/bin/x86_64 -linux-musl-gcc
225225
226226 # Extend the system path and confirm that musl is available by printing its version
227227 export PATH="$MUSL_HOME/bin:$PATH"
228- arm64-linux-musl-gcc --version
228+ echo "$path" >> $GITHUB_PATH
229+ x86_64-linux-musl-gcc --version
229230
230231 # Build zlib with musl from source and install into the MUSL_HOME directory
231232 curl -O https://zlib.net/fossils/zlib-1.2.13.tar.gz
0 commit comments