Skip to content

Commit

Permalink
fix: Symlink x86_64-linux-musl-gcc to aarch64-linux-musl-gcc
Browse files Browse the repository at this point in the history
GraalVM's native-image expects the former to be present.
See https://www.graalvm.org/dev/reference-manual/native-image/guides/build-static-executables/
  • Loading branch information
mthmulders committed Aug 12, 2024
1 parent 57b4338 commit d08c567
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/early-access.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ jobs:
curl -LOJ https://musl.cc/aarch64-linux-musl-native.tgz
tar -xvf aarch64-linux-musl-native.tgz
TOOLCHAIN_DIR=$TMP_DIR/aarch64-linux-musl-native
# Symlink x86_64-linux-musl-gcc to aarch64-linux-musl-gcc as native-image expects the former to be present
# See https://www.graalvm.org/dev/reference-manual/native-image/guides/build-static-executables/
ln -s $TOOLCHAIN_DIR/bin/aarch64-linux-musl-gcc $TOOLCHAIN_DIR/bin/x86_64-linux-musl-gcc
;;
*)
echo 'Unexpected CPU architecture!'
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@ jobs:
curl -LOJ https://musl.cc/aarch64-linux-musl-native.tgz
tar -xvf aarch64-linux-musl-native.tgz
TOOLCHAIN_DIR=$TMP_DIR/aarch64-linux-musl-native
# Symlink x86_64-linux-musl-gcc to aarch64-linux-musl-gcc as native-image expects the former to be present
# See https://www.graalvm.org/dev/reference-manual/native-image/guides/build-static-executables/
ln -s $TOOLCHAIN_DIR/bin/aarch64-linux-musl-gcc $TOOLCHAIN_DIR/bin/x86_64-linux-musl-gcc
;;
*)
echo 'Unexpected CPU architecture!'
Expand Down

0 comments on commit d08c567

Please sign in to comment.