forked from scalameta/scalafmt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Native: use 22.3.0, switch to setup-graalvm
The older version no longer handles the regular glibc case correctly, resulting in linker errors, hence the need for an upgrade. The newer version doesn't support the `-H:UseMuslC` option, hence the need to upgrade to setup-graalvm action which supports musl toolchain directly, requiring simply a flag.
- Loading branch information
Showing
3 changed files
with
16 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -72,18 +72,18 @@ jobs: | |
artifact: scalafmt-linux-musl | ||
env: | ||
NATIVE_IMAGE_STATIC: true | ||
NATIVE_IMAGE_MUSL: /home/runner/work/scalafmt/scalafmt/bundle | ||
NATIVE_IMAGE_MUSL: true | ||
env: ${{ matrix.env }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: olafurpg/setup-scala@v13 | ||
- name: Set up GraalVM | ||
uses: graalvm/setup-graalvm@v1 | ||
with: | ||
java-version: [email protected] | ||
- if: matrix.libc == 'musl' | ||
name: Install musl bundle | ||
run: | | ||
wget https://github.com/gradinac/musl-bundle-example/releases/download/v1.0/musl.tar.gz | ||
tar xvf musl.tar.gz | ||
version: '22.3.0' | ||
java-version: '11' | ||
components: 'native-image' | ||
native-image-musl: ${{ matrix.libc == 'musl' }} | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
- run: bin/build-native-image.sh | ||
env: | ||
CI: true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters