-
Notifications
You must be signed in to change notification settings - Fork 6
/
.cirrus.yml
24 lines (24 loc) · 1.43 KB
/
.cirrus.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
build_task:
macos_instance:
image: ghcr.io/cirruslabs/macos-ventura-base:latest
java_cache:
folder: java_cache/zulu8.68.0.21-ca-jdk8.0.362-macosx_aarch64
fingerprint_key: zulu8.68.0.21-ca-jdk8.0.362-macosx_aarch64
populate_script:
- mkdir java_cache
- curl -L https://cdn.azul.com/zulu/bin/zulu8.68.0.21-ca-jdk8.0.362-macosx_aarch64.tar.gz | tar xz -C java_cache
matrix:
-
name: Publish
only_if: $CIRRUS_BRANCH == $CIRRUS_DEFAULT_BRANCH && $CIRRUS_REPO_OWNER == 'CoolCrabs' && $CIRRUS_TAG == ""
env:
GITHUB_TOKEN: ENCRYPTED[!6234bb7ca63ced43e91122cfe5a657b4784a9da8131117ff54cb2a36419cde57d7a10aa9da15a95d3a8c905f919e5f1c!]
publish_script:
- java_cache/zulu8.68.0.21-ca-jdk8.0.362-macosx_aarch64/zulu-8.jdk/Contents/Home/bin/javac Buildscript.java
- java_cache/zulu8.68.0.21-ca-jdk8.0.362-macosx_aarch64/zulu-8.jdk/Contents/Home/bin/java Buildscript publish
-
name: Build
only_if: ($CIRRUS_BRANCH != $CIRRUS_DEFAULT_BRANCH || $CIRRUS_REPO_OWNER != 'CoolCrabs') && $CIRRUS_TAG == ""
publish_script:
- java_cache/zulu8.68.0.21-ca-jdk8.0.362-macosx_aarch64/zulu-8.jdk/Contents/Home/bin/javac Buildscript.java
- java_cache/zulu8.68.0.21-ca-jdk8.0.362-macosx_aarch64/zulu-8.jdk/Contents/Home/bin/java Buildscript build