Skip to content
This repository has been archived by the owner on Apr 2, 2023. It is now read-only.

Commit

Permalink
Rename project to refer to "native-image" (#222)
Browse files Browse the repository at this point in the history
  • Loading branch information
dzou authored Sep 27, 2021
1 parent de291e6 commit 77d675d
Show file tree
Hide file tree
Showing 110 changed files with 271 additions and 275 deletions.
2 changes: 1 addition & 1 deletion .cloudbuild/graal-build-script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ gu install native-image
--batch-mode \
--quiet \
--projects \!com.example:cloud-functions-sample \
--file google-cloud-graalvm-samples
--file java-native-image-samples
24 changes: 12 additions & 12 deletions .cloudbuild/graal-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,50 +49,50 @@ steps:

# Run the tests
- name: ghcr.io/graalvm/graalvm-ce:java11-21.2.0
args: [ './google-cloud-graalvm-samples/graalvm-samples-client-library/bigquery-sample/target/com.example.bigquerysampleapplication' ]
args: [ './java-native-image-samples/native-image-samples-client-library/bigquery-sample/target/com.example.bigquerysampleapplication' ]

- name: ghcr.io/graalvm/graalvm-ce:java11-21.2.0
args: [
'./google-cloud-graalvm-samples/graalvm-samples-client-library/cloud-sql-sample/target/com.example.cloudsqlsampleapplication',
'./java-native-image-samples/native-image-samples-client-library/cloud-sql-sample/target/com.example.cloudsqlsampleapplication',
'-Dinstance=cloud-graalvm-support-ci:us-east1:test-instance',
'-Dpassword=root'
]

- name: ghcr.io/graalvm/graalvm-ce:java11-21.2.0
args: [ './google-cloud-graalvm-samples/graalvm-samples-client-library/pubsub-sample/target/com.example.pubsubsampleapplication' ]
args: [ './java-native-image-samples/native-image-samples-client-library/pubsub-sample/target/com.example.pubsubsampleapplication' ]

- name: ghcr.io/graalvm/graalvm-ce:java11-21.2.0
args: [ './google-cloud-graalvm-samples/graalvm-samples-client-library/storage-sample/target/com.example.storagesampleapplication' ]
args: [ './java-native-image-samples/native-image-samples-client-library/storage-sample/target/com.example.storagesampleapplication' ]

- name: ghcr.io/graalvm/graalvm-ce:java11-21.2.0
args: [ './google-cloud-graalvm-samples/graalvm-samples-client-library/logging-sample/target/com.example.loggingsampleapplication' ]
args: [ './java-native-image-samples/native-image-samples-client-library/logging-sample/target/com.example.loggingsampleapplication' ]

- name: ghcr.io/graalvm/graalvm-ce:java11-21.2.0
args: [ './google-cloud-graalvm-samples/graalvm-samples-client-library/secretmanager-sample/target/com.example.secretmanagersampleapplication' ]
args: [ './java-native-image-samples/native-image-samples-client-library/secretmanager-sample/target/com.example.secretmanagersampleapplication' ]

- name: ghcr.io/graalvm/graalvm-ce:java11-21.2.0
args: [ './google-cloud-graalvm-samples/graalvm-samples-client-library/tasks-sample/target/com.example.taskssampleapplication' ]
args: [ './java-native-image-samples/native-image-samples-client-library/tasks-sample/target/com.example.taskssampleapplication' ]

- name: ghcr.io/graalvm/graalvm-ce:java11-21.2.0
args: [ './google-cloud-graalvm-samples/graalvm-samples-client-library/trace-sample/target/com.example.tracesampleapplication' ]
args: [ './java-native-image-samples/native-image-samples-client-library/trace-sample/target/com.example.tracesampleapplication' ]

- name: ghcr.io/graalvm/graalvm-ce:java11-21.2.0
args: [ './google-cloud-graalvm-samples/graalvm-samples-client-library/firestore-sample/target/com.example.firestoresampleapplication' ]
args: [ './java-native-image-samples/native-image-samples-client-library/firestore-sample/target/com.example.firestoresampleapplication' ]
env:
- 'FIRESTORE_EMULATOR_HOST=firestore-emulator:9010'

- name: ghcr.io/graalvm/graalvm-ce:java11-21.2.0
args: [ './google-cloud-graalvm-samples/graalvm-samples-client-library/spanner-sample/target/com.example.spannersampleapplication' ]
args: [ './java-native-image-samples/native-image-samples-client-library/spanner-sample/target/com.example.spannersampleapplication' ]
env:
- 'SPANNER_EMULATOR_HOST=spanner-emulator:9010'

- name: ghcr.io/graalvm/graalvm-ce:java11-21.2.0
args: [ './google-cloud-graalvm-samples/graalvm-samples-client-library/bigtable-sample/target/com.example.bigtablesampleapplication' ]
args: [ './java-native-image-samples/native-image-samples-client-library/bigtable-sample/target/com.example.bigtablesampleapplication' ]
env:
- 'BIGTABLE_EMULATOR_HOST=bigtable-emulator:9010'

- name: ghcr.io/graalvm/graalvm-ce:java11-21.2.0
args: [ './google-cloud-graalvm-samples/graalvm-samples-client-library/datastore-sample/target/com.example.datastoresampleapplication' ]
args: [ './java-native-image-samples/native-image-samples-client-library/datastore-sample/target/com.example.datastoresampleapplication' ]
env:
- 'DATASTORE_EMULATOR_HOST=http://datastore-emulator:9010'

Expand Down
24 changes: 12 additions & 12 deletions .cloudbuild/std-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,62 +50,62 @@ steps:
# Run all the samples
- name: openjdk:11-jdk
entrypoint: java
args: ['-jar', 'google-cloud-graalvm-samples/graalvm-samples-client-library/pubsub-sample/target/pubsub-sample-0.8.0-SNAPSHOT.jar']
args: ['-jar', 'java-native-image-samples/native-image-samples-client-library/pubsub-sample/target/pubsub-sample-0.8.0-SNAPSHOT.jar']

- name: openjdk:11-jdk
entrypoint: java
args: ['-jar', 'google-cloud-graalvm-samples/graalvm-samples-client-library/storage-sample/target/storage-sample-0.8.0-SNAPSHOT.jar']
args: ['-jar', 'java-native-image-samples/native-image-samples-client-library/storage-sample/target/storage-sample-0.8.0-SNAPSHOT.jar']

- name: openjdk:11-jdk
entrypoint: java
args: ['-jar', 'google-cloud-graalvm-samples/graalvm-samples-client-library/bigquery-sample/target/bigquery-sample-0.8.0-SNAPSHOT.jar']
args: ['-jar', 'java-native-image-samples/native-image-samples-client-library/bigquery-sample/target/bigquery-sample-0.8.0-SNAPSHOT.jar']

- name: openjdk:11-jdk
entrypoint: java
args: ['-jar', 'google-cloud-graalvm-samples/graalvm-samples-client-library/logging-sample/target/logging-sample-0.8.0-SNAPSHOT.jar']
args: ['-jar', 'java-native-image-samples/native-image-samples-client-library/logging-sample/target/logging-sample-0.8.0-SNAPSHOT.jar']

- name: openjdk:11-jdk
entrypoint: java
args: ['-jar', 'google-cloud-graalvm-samples/graalvm-samples-client-library/trace-sample/target/trace-sample-0.8.0-SNAPSHOT.jar']
args: ['-jar', 'java-native-image-samples/native-image-samples-client-library/trace-sample/target/trace-sample-0.8.0-SNAPSHOT.jar']

- name: openjdk:11-jdk
entrypoint: java
args: ['-jar', 'google-cloud-graalvm-samples/graalvm-samples-client-library/secretmanager-sample/target/secretmanager-sample-0.8.0-SNAPSHOT.jar']
args: ['-jar', 'java-native-image-samples/native-image-samples-client-library/secretmanager-sample/target/secretmanager-sample-0.8.0-SNAPSHOT.jar']

- name: openjdk:11-jdk
entrypoint: java
args: ['-jar', 'google-cloud-graalvm-samples/graalvm-samples-client-library/tasks-sample/target/tasks-sample-0.8.0-SNAPSHOT.jar']
args: ['-jar', 'java-native-image-samples/native-image-samples-client-library/tasks-sample/target/tasks-sample-0.8.0-SNAPSHOT.jar']

- name: openjdk:11-jdk
entrypoint: java
args: [
'-jar',
'-Dinstance=cloud-graalvm-support-ci:us-east1:test-instance',
'-Dpassword=root',
'google-cloud-graalvm-samples/graalvm-samples-client-library/cloud-sql-sample/target/cloud-sql-sample-0.8.0-SNAPSHOT.jar'
'java-native-image-samples/native-image-samples-client-library/cloud-sql-sample/target/cloud-sql-sample-0.8.0-SNAPSHOT.jar'
]

- name: openjdk:11-jdk
entrypoint: java
args: ['-jar', 'google-cloud-graalvm-samples/graalvm-samples-client-library/firestore-sample/target/firestore-sample-0.8.0-SNAPSHOT.jar']
args: ['-jar', 'java-native-image-samples/native-image-samples-client-library/firestore-sample/target/firestore-sample-0.8.0-SNAPSHOT.jar']
env:
- 'FIRESTORE_EMULATOR_HOST=firestore-emulator:9010'

- name: openjdk:11-jdk
entrypoint: java
args: ['-jar', 'google-cloud-graalvm-samples/graalvm-samples-client-library/spanner-sample/target/spanner-sample-0.8.0-SNAPSHOT.jar']
args: ['-jar', 'java-native-image-samples/native-image-samples-client-library/spanner-sample/target/spanner-sample-0.8.0-SNAPSHOT.jar']
env:
- 'SPANNER_EMULATOR_HOST=spanner-emulator:9010'

- name: openjdk:11-jdk
entrypoint: java
args: ['-jar', 'google-cloud-graalvm-samples/graalvm-samples-client-library/bigtable-sample/target/bigtable-sample-0.8.0-SNAPSHOT.jar']
args: ['-jar', 'java-native-image-samples/native-image-samples-client-library/bigtable-sample/target/bigtable-sample-0.8.0-SNAPSHOT.jar']
env:
- 'BIGTABLE_EMULATOR_HOST=bigtable-emulator:9010'

- name: openjdk:11-jdk
entrypoint: java
args: ['-jar', 'google-cloud-graalvm-samples/graalvm-samples-client-library/datastore-sample/target/datastore-sample-0.8.0-SNAPSHOT.jar']
args: ['-jar', 'java-native-image-samples/native-image-samples-client-library/datastore-sample/target/datastore-sample-0.8.0-SNAPSHOT.jar']
env:
- 'DATASTORE_EMULATOR_HOST=http://datastore-emulator:9010'

Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

jobs:
std-java-build:
if: github.repository == 'GoogleCloudPlatform/google-cloud-graalvm-support'
if: github.repository_owner == 'GoogleCloudPlatform'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -38,16 +38,16 @@ jobs:
- name: Build with Maven
run: |
mvn clean install -B -q
mvn package -B --file google-cloud-graalvm-samples/
mvn package -B --file java-native-image-samples/
- name: Run Samples
run: |
cd google-cloud-graalvm-samples
java -jar graalvm-samples-client-library/pubsub-sample/target/pubsub-sample-0.8.0-SNAPSHOT.jar
java -jar graalvm-samples-client-library/trace-sample/target/trace-sample-0.8.0-SNAPSHOT.jar
cd java-native-image-samples
java -jar native-image-samples-client-library/pubsub-sample/target/pubsub-sample-0.8.0-SNAPSHOT.jar
java -jar native-image-samples-client-library/trace-sample/target/trace-sample-0.8.0-SNAPSHOT.jar
graal-java-build:
if: github.repository == 'GoogleCloudPlatform/google-cloud-graalvm-support'
if: github.repository_owner == 'GoogleCloudPlatform'
runs-on: ubuntu-latest
timeout-minutes: 90
steps:
Expand Down Expand Up @@ -79,9 +79,9 @@ jobs:
run: |
gu install native-image
mvn clean install -B -q
mvn package -P native -B --file google-cloud-graalvm-samples/graalvm-samples-client-library/pubsub-sample
mvn package -P native -B --file java-native-image-samples/native-image-samples-client-library/pubsub-sample
- name: Run Samples
run: |
cd google-cloud-graalvm-samples
./graalvm-samples-client-library/pubsub-sample/target/com.example.pubsubsampleapplication
cd java-native-image-samples
./native-image-samples-client-library/pubsub-sample/target/com.example.pubsubsampleapplication
2 changes: 1 addition & 1 deletion .kokoro/continuous.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Format: //devtools/kokoro/config/proto/build.proto

build_file: "google-cloud-graalvm-support/.kokoro/build.sh"
build_file: "java-native-image-support/.kokoro/build.sh"

gfile_resources: "/x20/projects/java-platform/linux-amd64/jdk-11-latest"
2 changes: 1 addition & 1 deletion .kokoro/drop.cfg
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Format: //devtools/kokoro/config/proto/build.proto

build_file: "google-cloud-graalvm-support/.kokoro/drop.sh"
build_file: "java-native-image-support/.kokoro/drop.sh"
2 changes: 1 addition & 1 deletion .kokoro/promote.cfg
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Format: //devtools/kokoro/config/proto/build.proto

build_file: "google-cloud-graalvm-support/.kokoro/promote.sh"
build_file: "java-native-image-support/.kokoro/promote.sh"
2 changes: 1 addition & 1 deletion .kokoro/stage.cfg
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Format: //devtools/kokoro/config/proto/build.proto

build_file: "google-cloud-graalvm-support/.kokoro/stage.sh"
build_file: "java-native-image-support/.kokoro/stage.sh"
Loading

0 comments on commit 77d675d

Please sign in to comment.