-
Notifications
You must be signed in to change notification settings - Fork 20
37 lines (29 loc) · 992 Bytes
/
macos.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
name: Java CI MacOS Gradle
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
os: [ macos-12, macos-13, macos-14 ]
distribution: [ 'adopt-hotspot', 'adopt-openj9' ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up JDK x64
uses: actions/setup-java@v4
with:
distribution: ${{ matrix.distribution }}
java-version: '8.0.422'
java-package: jdk
architecture: x64
cache: 'gradle'
- name: Set up Gradle
uses: gradle/actions/setup-gradle@v4
with:
gradle-version: 4.10.3
- name: Run gradle and ant builds
run: |
java -version
gradle -version
gradle build --no-daemon
ant -noinput -buildfile build.xml -Drepository="/.gradle/caches/modules-2/files-2.1" -Dgson_path="/com.google.code.gson/gson/2.11.0/527175ca6d81050b53bdd4c457a6d6e017626b0e" clean all build-jar