File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -164,24 +164,22 @@ jobs:
164164 - name : Build native test server (non-Docker)
165165 if : matrix.os_family != 'Linux'
166166 run : |
167- ./gradlew :temporal-test-server:build
167+ ./gradlew -PnativeBuild :temporal-test-server:nativeBuild
168168
169169 - name : Build native test server (Docker)
170170 if : matrix.os_family == 'Linux'
171171 run : |
172172 docker run \
173173 --rm -w /github/workspace -v "$(pwd):/github/workspace" \
174174 $(docker build -q ./docker/native-image) \
175- sh -c "./gradlew :temporal-test-server:build "
175+ sh -c "./gradlew -PnativeBuild :temporal-test-server:nativeBuild "
176176 # path ends in a wildcard because on windows the file ends in '.exe'
177- # path excludes *.txt because native-image also writes a build manifest txt file
178177 - name : Upload executable to workflow
179178 uses : actions/upload-artifact@v4
180179 with :
181180 name : ${{ matrix.os_family }}_${{ matrix.arch }}
182181 path : |
183- temporal-test-server/build/graal/temporal-test-server*
184- !temporal-test-server/build/graal/*.txt
182+ temporal-test-server/build/native/nativeCompile/temporal-test-server*
185183 if-no-files-found : error
186184 retention-days : 1
187185
Original file line number Diff line number Diff line change @@ -41,19 +41,13 @@ referenced JSON files during compilation. The JSON files are generated by
4141running the test server java code in a JVM configured with the [ GraalVM tracing
4242agent] ( https://www.graalvm.org/latest/reference-manual/native-image/metadata/AutomaticMetadataCollection/ ) configured,
4343
44- ### To run the test server as an application with tracing agent through Gradle
44+ ### To run the test server test with tracing agent through Gradle
4545
4646``` bash
47- ./gradlew -Pagent -PnativeBuild :temporal-test-server:run --args=" 7233"
48- ```
49-
50- ### To run the test server tests with tracing agent through Gradle
51-
52- ``` bash
53- ./gradlew -Pagent -PnativeBuild :temporal-test-server:test
47+ ./gradlew -Pagent -PnativeBuild :temporal-test-server:test
5448```
5549
5650### Copy metadata from test run
5751``` bash
58- ./gradlew -Pagent - PnativeBuild :temporal-test-server:metadataCopy
52+ ./gradlew -PnativeBuild :temporal-test-server:metadataCopy --task test
5953```
Original file line number Diff line number Diff line change 11plugins {
22 id ' application'
3- id ' org.graalvm.buildtools.native' version ' 0.10.4 ' apply false
3+ id ' org.graalvm.buildtools.native' version ' 0.10.6 ' apply false
44 id ' com.google.protobuf' version ' 0.9.2'
55}
66
@@ -106,10 +106,8 @@ if (project.hasProperty("nativeBuild")) {
106106 enabled = true
107107 defaultMode = " standard"
108108 metadataCopy {
109- inputTaskNames. add(" test" )
110- inputTaskNames. add(" run" )
111109 outputDirectories. add(" src/main/resources/META-INF/native-image/io.temporal/temporal-test-server" )
112- mergeWithExisting = true
110+ mergeWithExisting = false
113111 }
114112
115113 }
You can’t perform that action at this time.
0 commit comments