Skip to content

Commit c9c0351

Browse files
native image fixed
1 parent 7b93bd9 commit c9c0351

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/build-native-image.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,15 +65,15 @@ jobs:
6565
- name: Build native test server (non-Docker)
6666
if: matrix.os_family != 'Linux'
6767
run: |
68-
./gradlew -PnativeBuild :temporal-test-server:nativeBuild
68+
./gradlew -PnativeBuild :temporal-test-server:nativeCompile
6969
7070
- name: Build native test server (Docker)
7171
if: matrix.os_family == 'Linux'
7272
run: |
7373
docker run \
7474
--rm -w /github/workspace -v "$(pwd):/github/workspace" \
7575
$(docker build -q ./docker/native-image) \
76-
sh -c "./gradlew -PnativeBuild :temporal-test-server:nativeBuild"
76+
sh -c "./gradlew -PnativeBuild :temporal-test-server:nativeCompile"
7777
# path ends in a wildcard because on windows the file ends in '.exe'
7878
- name: Upload executable to workflow
7979
uses: actions/upload-artifact@v4

docker/native-image/dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# older versions of glibc, specifically glib 2.17.
33
FROM ubuntu:18.04
44
ENV JAVA_HOME=/usr/lib64/graalvm/graalvm-community-java21
5-
COPY --from=ghcr.io/graalvm/jdk-community:21 $JAVA_HOME $JAVA_HOME
5+
COPY --from=ghcr.io/graalvm/native-image-community:21 $JAVA_HOME $JAVA_HOME
66
ENV PATH="${JAVA_HOME}/bin:${PATH}"
77
RUN apt-get update
88
RUN apt-get install -y git build-essential zlib1g-dev

0 commit comments

Comments
 (0)