Skip to content

Commit 3b6d40f

Browse files
authored
Refactoring Linux amd64 static build (#652)
Refactoring Linux amd64 static build to work on Github Actions
1 parent ff512b7 commit 3b6d40f

File tree

3 files changed

+17
-19
lines changed

3 files changed

+17
-19
lines changed

Dockerfile.builder.linux-amd64-static

Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,18 @@
11
FROM debian:11
22

3-
RUN apt-get update -y &&\
4-
apt-get install --force-yes -y build-essential libz-dev zlib1g-dev curl
5-
6-
ARG RESULT_LIB="/musl"
7-
8-
RUN mkdir ${RESULT_LIB} && \
9-
curl -L -o musl.tar.gz https://more.musl.cc/10.2.1/x86_64-linux-musl/x86_64-linux-musl-native.tgz && \
10-
tar -xvzf musl.tar.gz -C musl --strip-components 1 && \
11-
cp /usr/lib/gcc/x86_64-linux-gnu/10/libstdc++.a ${RESULT_LIB}/lib/
12-
13-
ENV CC=/musl/bin/gcc
14-
15-
RUN curl -L -o zlib.tar.gz https://www.zlib.net/fossils/zlib-1.2.11.tar.gz && \
16-
mkdir zlib && tar -xvzf zlib.tar.gz -C zlib --strip-components 1 && \
17-
cd zlib && ./configure --static --prefix=/musl && \
18-
make && make install && \
19-
cd / && rm -rf /zlib && rm -f /zlib.tar.gz
20-
3+
RUN apt-get update -y && \
4+
apt-get install -y --no-install-recommends \
5+
build-essential \
6+
musl \
7+
musl-dev \
8+
musl-tools \
9+
zlib1g-dev \
10+
curl \
11+
ca-certificates \
12+
&& rm -rf /var/lib/apt/lists/*
13+
14+
RUN musl-gcc -v
15+
ENV CC=musl-gcc
2116
ENV PATH="$PATH:/musl/bin"
2217
ENV GRAALVM_URL='https://github.com/graalvm/graalvm-ce-builds/releases/download/jdk-21.0.2/graalvm-community-jdk-21.0.2_linux-x64_bin.tar.gz'
2318

RELEASE-NOTES.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 5.0.1
2+
* Refactoring Linux amd64 static build to work on Github Actions
3+
14
## 5.0.0
25
* Refactoring config module to support config v3
36
* Activating Config v3 for beta testing

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version=5.0.0-snapshot
1+
version=5.0.1-snapshot

0 commit comments

Comments
 (0)