forked from DarkCat09/docker-openj9-piped
ci: an idea
Some checks failed
Docker Image CI / build-and-push (map[build-args:[] context:./ dockerfile:Dockerfile.piped image_name:piped]) (push) Successful in 9s
Docker Image CI / build-and-push (map[build-args:[WITH_JDK=false] context:./ dockerfile:Dockerfile.openj9 image_name:openj9]) (push) Has been cancelled
Some checks failed
Docker Image CI / build-and-push (map[build-args:[] context:./ dockerfile:Dockerfile.piped image_name:piped]) (push) Successful in 9s
Docker Image CI / build-and-push (map[build-args:[WITH_JDK=false] context:./ dockerfile:Dockerfile.openj9 image_name:openj9]) (push) Has been cancelled
This commit is contained in:
parent
404dec0f40
commit
23c11351f1
2 changed files with 18 additions and 10 deletions
|
@ -2,7 +2,7 @@ name: Docker Image CI
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: ['main']
|
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
|
@ -24,9 +24,11 @@ jobs:
|
||||||
- dockerfile: 'Dockerfile.openj9'
|
- dockerfile: 'Dockerfile.openj9'
|
||||||
image_name: 'openj9'
|
image_name: 'openj9'
|
||||||
context: './'
|
context: './'
|
||||||
|
build-args: ["WITH_JDK=false"]
|
||||||
- dockerfile: 'Dockerfile.piped'
|
- dockerfile: 'Dockerfile.piped'
|
||||||
image_name: 'piped'
|
image_name: 'piped'
|
||||||
context: './'
|
context: './'
|
||||||
|
build-args: []
|
||||||
# Add more images as needed
|
# Add more images as needed
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
@ -67,3 +69,4 @@ jobs:
|
||||||
push: ${{ github.event_name == 'push' }}
|
push: ${{ github.event_name == 'push' }}
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
build-args: ${{ matrix.images.build-args }}
|
|
@ -33,7 +33,7 @@ RUN git clone --single-branch --depth 1 \
|
||||||
WORKDIR /build/src
|
WORKDIR /build/src
|
||||||
RUN bash get_source.sh
|
RUN bash get_source.sh
|
||||||
|
|
||||||
RUN bash configure --with-jtreg=/build/jtreg --with-boot-jdk=/build/bootjdk --with-openssl=system --with-extra-ldflags="-Wl,-z,noexecstack"
|
RUN bash configure --enable-libffi-bundling --enable-ddr --enable-jitserver --enable-fallback-linker --with-jtreg=/build/jtreg --with-boot-jdk=/build/bootjdk --with-openssl=system --with-extra-ldflags="-Wl,-z,noexecstack"
|
||||||
RUN make all JOBS=$(nproc)
|
RUN make all JOBS=$(nproc)
|
||||||
RUN make install
|
RUN make install
|
||||||
|
|
||||||
|
@ -55,17 +55,22 @@ openj9.sharedclasses,openj9.zosconditionhandling
|
||||||
ENV JAVA_HOME=/build/src/build/linux-x86_64-server-release/images/jre
|
ENV JAVA_HOME=/build/src/build/linux-x86_64-server-release/images/jre
|
||||||
ENV PATH="$JAVA_HOME/bin:$JAVA_HOME/lib:$PATH"
|
ENV PATH="$JAVA_HOME/bin:$JAVA_HOME/lib:$PATH"
|
||||||
ENV TEST_JDK_HOME=/build/src/build/linux-x86_64-server-release/images/jdk
|
ENV TEST_JDK_HOME=/build/src/build/linux-x86_64-server-release/images/jdk
|
||||||
ENV TEST_ROOT=/build/openj9-repo/test
|
ENV TEST_ROOT=/build/src/openj9/test
|
||||||
ENV DIAGNOSTICLEVEL=nodetails
|
ENV DIAGNOSTICLEVEL=nodetails
|
||||||
|
ENV NATIVE_TEST_LIBS=/build/src/build/linux-x86_64-server-release/images/test
|
||||||
|
|
||||||
RUN git clone --depth=1 https://github.com/eclipse-openj9/openj9.git /build/openj9-repo
|
RUN cd /build/src/openj9/test \
|
||||||
|
&& git clone https://github.com/adoptium/TKG.git
|
||||||
|
|
||||||
RUN cd /build/openj9-repo/test \
|
WORKDIR /build/src/openj9/test/TKG
|
||||||
&& git clone https://github.com/adoptium/TKG.git \
|
|
||||||
&& cd TKG \
|
|
||||||
&& make compile -j$(nproc) \
|
|
||||||
&& make _sanity.openjdk.regular -j$(nproc)
|
|
||||||
|
|
||||||
|
RUN make compile -j$(nproc)
|
||||||
|
|
||||||
|
RUN ldconfig
|
||||||
|
RUN find -type f -name "playlist.xml" | xargs sed -i 's#<testCaseName>jit_jar</testCaseName>#<testCaseName>jit_jar</testCaseName><disables><disable><comment></comment><disable></disables>#g'
|
||||||
|
RUN find -type f -name "playlist.xml" | xargs sed -i 's#<testCaseName>testJITServer</testCaseName>#<testCaseName>testJITServer</testCaseName><disables><disable><comment></comment><disable></disables>#g'
|
||||||
|
|
||||||
|
RUN make _sanity.functional.regular -j$(nproc)
|
||||||
|
|
||||||
WORKDIR /build/src/build/linux-x86_64-server-release/images
|
WORKDIR /build/src/build/linux-x86_64-server-release/images
|
||||||
RUN mv ./* /build/dist/
|
RUN mv ./* /build/dist/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue