feat: improve GitHub actions

This commit is contained in:
hstyi
2025-07-09 18:09:37 +08:00
committed by hstyi
parent 56a9361e86
commit 5830aa937a
8 changed files with 141 additions and 270 deletions

View File

@@ -0,0 +1,20 @@
FROM debian:12.11
RUN apt-get clean && apt-get update && apt-get install -y curl tar zip binutils fakeroot wget libfuse2 fuse libglib2.0-0 file ca-certificates libstdc++6
RUN ARCH=$(dpkg --print-architecture) && \
if [ "$ARCH" = "amd64" ]; then \
URL="https://cache-redirector.jetbrains.com/intellij-jbr/jbrsdk-21.0.7-linux-x64-b1034.51.tar.gz"; \
elif [ "$ARCH" = "arm64" ]; then \
URL="https://cache-redirector.jetbrains.com/intellij-jbr/jbrsdk-21.0.7-linux-aarch64-b1034.51.tar.gz"; \
else \
echo "Unsupported architecture: $ARCH" && exit 1; \
fi && \
curl -L "$URL" -o jbr.tar.gz && \
mkdir -p /opt/jbr && \
tar -xzf jbr.tar.gz -C /opt/jbr --strip-components=1 && \
rm jbr.tar.gz
ENV JAVA_HOME=/opt/jbr
ENV PATH="${JAVA_HOME}/bin:${PATH}"