-
Notifications
You must be signed in to change notification settings - Fork 135
/
build-embedded-minimized-jdk.yml
47 lines (45 loc) · 3.15 KB
/
build-embedded-minimized-jdk.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
steps:
- command: |-
bazel --ignore_all_rc_files version
bazel build //src:embedded_jdk_minimal //src:embedded_jdk_allmodules
buildkite-agent artifact upload "./bazel-bin/src/*_jdk.tar.gz"
gsutil cp ./bazel-bin/src/minimal_jdk.tar.gz gs://bazel-mirror/openjdk/azul-zulu11.37.17-ca-jdk11.0.6/zulu11.37.17-ca-jdk11.0.6-linux_x64-minimal-$(git rev-parse HEAD)-$(date +%s).tar.gz
gsutil cp ./bazel-bin/src/allmodules_jdk.tar.gz gs://bazel-mirror/openjdk/azul-zulu11.37.17-ca-jdk11.0.6/zulu11.37.17-ca-jdk11.0.6-linux_x64-linux_x64-allmodules-$(git rev-parse HEAD)-$(date +%s).tar.gz
label: ":ubuntu:"
agents:
- "queue=default"
plugins:
docker#v3.8.0:
always-pull: true
environment:
- ANDROID_HOME
- ANDROID_NDK_HOME
- BUILDKITE_ARTIFACT_UPLOAD_DESTINATION
image: gcr.io/bazel-public/ubuntu1804-java11
network: host
privileged: true
propagate-environment: true
propagate-uid-gid: true
shell: ["/bin/bash", "-e", "-c"]
volumes:
- "/etc/group:/etc/group:ro"
- "/etc/passwd:/etc/passwd:ro"
- "/etc/shadow:/etc/shadow:ro"
- "/opt/android-ndk-r15c:/opt/android-ndk-r15c:ro"
- "/opt/android-sdk-linux:/opt/android-sdk-linux:ro"
- "/var/lib/buildkite-agent:/var/lib/buildkite-agent"
- "/var/lib/gitmirrors:/var/lib/gitmirrors:ro"
- "/var/run/docker.sock:/var/run/docker.sock"
- command: "powershell -Command \"bazel --ignore_all_rc_files version ; if (\\$LastExitCode -ne 0) { exit 1 } ; bazel build //src:embedded_jdk_minimal //src:embedded_jdk_allmodules ; if (\\$LastExitCode -ne 0) { exit 1 } ; buildkite-agent artifact upload ./bazel-bin/src/minimal_jdk.zip ; if (\\$LastExitCode -ne 0) { exit 1 } ; buildkite-agent artifact upload ./bazel-bin/src/allmodules_jdk.zip ; if (\\$LastExitCode -ne 0) { exit 1 } ; \\$revision=(git rev-parse HEAD) ; if (\\$LastExitCode -ne 0) { exit 1 } ; \\$epoch=(date +%%s) ; if (\\$LastExitCode -ne 0) { exit 1 } ; gsutil cp ./bazel-bin/src/minimal_jdk.zip gs://bazel-mirror/openjdk/azul-zulu11.37.17-ca-jdk11.0.6/zulu11.37.17-ca-jdk11.0.6-win_x64-minimal-\\${revision}-\\${epoch}.zip ; if (\\$LastExitCode -ne 0) { exit 1 } ; gsutil cp ./bazel-bin/src/allmodules_jdk.zip gs://bazel-mirror/openjdk/azul-zulu11.37.17-ca-jdk11.0.6/zulu11.37.17-ca-jdk11.0.6-win_x64-allmodules-\\${revision}-\\${epoch}.zip ; if (\\$LastExitCode -ne 0) { exit 1 } ;\""
label: ":windows:"
agents:
- "queue=windows"
- command: |-
bazel --ignore_all_rc_files version
bazel build //src:embedded_jdk_minimal //src:embedded_jdk_allmodules
buildkite-agent artifact upload "./bazel-bin/src/*_jdk.tar.gz"
gsutil cp ./bazel-bin/src/minimal_jdk.tar.gz gs://bazel-mirror/openjdk/azul-zulu11.37.17-ca-jdk11.0.6/zulu11.37.17-ca-jdk11.0.6-macosx_x64-minimal-$(git rev-parse HEAD)-$(date +%s).tar.gz
gsutil cp ./bazel-bin/src/allmodules_jdk.tar.gz gs://bazel-mirror/openjdk/azul-zulu11.37.17-ca-jdk11.0.6/zulu11.37.17-ca-jdk11.0.6-macosx_x64-allmodules-$(git rev-parse HEAD)-$(date +%s).tar.gz
label: ":darwin:"
agents:
- "queue=macos"