Skip to content

Commit

Permalink
Update to GraalVM 21.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jordeu committed Nov 5, 2021
1 parent 23b7336 commit 3abb263
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 17 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
name: Linux
if: "!contains(github.event.head_commit.message, '[skip ci]')"
runs-on: ubuntu-latest
container: public.ecr.aws/seqera-labs/graalvm-static:latest
container: public.ecr.aws/seqera-labs/graalvm-static:21.3.0
timeout-minutes: 90

steps:
Expand All @@ -24,13 +24,10 @@ jobs:
with:
fetch-depth: 1

- name: Install build-essentials
run: DEBIAN_FRONTEND=noninteractive apt update && apt install --assume-yes --no-install-recommends build-essential zlib1g-dev && rm -rf /var/lib/apt/lists/*

- name: Setup Graalvm
uses: DeLaGuardo/setup-graalvm@master
with:
graalvm: '21.2.0'
graalvm: '21.3.0'
java: 'java11'
arch: 'amd64'

Expand Down
3 changes: 3 additions & 0 deletions .sdkmanrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Enable auto-env through the sdkman_auto_env config
# Add key=value pairs of SDKs to use below
java=21.3.0.r17-grl
18 changes: 6 additions & 12 deletions graalvm-static/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,16 @@ FROM debian:bullseye
# Add essential tools to build
RUN DEBIAN_FRONTEND=noninteractive apt update && apt install --assume-yes --no-install-recommends build-essential zlib1g-dev wget ca-certificates && rm -rf /var/lib/apt/lists/*

# Folder where we install the libraries
RUN mkdir /libs

# Temporal folder to download libraries
RUN mkdir /downloads
# Folder where we install the Musl toolchain
RUN mkdir /toolchain

# Musl
RUN cd /downloads && wget https://musl.libc.org/releases/musl-1.2.2.tar.gz && tar xvzf musl-1.2.2.tar.gz && rm musl-1.2.2.tar.gz
RUN cd /downloads/musl-1.2.2 && ./configure --disable-shared --prefix=/libs && make && make install && rm -rf /downloads/musl-1.2.2
RUN cd /toolchain && wget http://musl.cc/x86_64-linux-musl-native.tgz && tar xvzf x86_64-linux-musl-native.tgz && rm -rf x86_64-linux-musl-native.tgz

# Add musl-gcc binary to the path
ENV PATH="/libs/bin:${PATH}"
ENV PATH="/toolchain/x86_64-linux-musl-native/bin:${PATH}"

# zlib
RUN mkdir /downloads
RUN cd /downloads && wget https://zlib.net/zlib-1.2.11.tar.gz && tar xvzf zlib-1.2.11.tar.gz && rm zlib-1.2.11.tar.gz
RUN cd /downloads/zlib-1.2.11 && CC=musl-gcc ./configure --static --prefix=/libs && make && make install && rm -rf /downloads/zlib-1.2.11

# libstdc++
RUN cp /usr/lib/gcc/x86_64-linux-gnu/10/libstdc++.a /libs/lib/
RUN cd /downloads/zlib-1.2.11 && CC=/toolchain/x86_64-linux-musl-native/bin/gcc ./configure --static --prefix=/toolchain/x86_64-linux-musl-native && make && make install && rm -rf /downloads/zlib-1.2.11

0 comments on commit 3abb263

Please sign in to comment.