-
Notifications
You must be signed in to change notification settings - Fork 2
96 lines (90 loc) · 3.41 KB
/
test-builds-java.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# This workflow will upload a Python Package using Twine when a release is created
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
name: Building Java Supporting Libraries
on:
push:
branches: [ master, develop ]
pull_request:
branches: [ master, develop ]
concurrency:
group: Building Java Supporting Libraries @ ${{ github.ref }}
cancel-in-progress: true
env:
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }}
GPG_SIGNING_PASSWORD: ${{ secrets.GPG_SIGNING_PASSWORD }}
jobs:
test-builds:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
java: [17]
jdk: [temurin, corretto, zulu, microsoft]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v3
with:
distribution: '${{ matrix.jdk }}' # See 'Supported distributions' for available options
java-version: '${{ matrix.java }}'
- name: Build with Gradle (Unix)
if: ${{ matrix.os != 'windows-latest' }}
run: |
cd ${{ github.workspace }}
./gradlew build
- name: Build with Gradle (Windows)
if: ${{ matrix.os == 'windows-latest' }}
run: |
cd ${{ github.workspace }}
.\gradlew.bat build
#
# test-amalthea-build:
# strategy:
# matrix:
# os: [ubuntu-latest, macos-latest, windows-latest]
# java: [1.11, 1.15]
# runs-on: ${{ matrix.os }}
# steps:
# - uses: actions/checkout@v2
# - name: Set up JDK ${{ matrix.java }}
# uses: actions/[email protected]
# with:
# java-version: ${{ matrix.java }}
# server-id: io.github.forsyde # Value of the distributionManagement/repository/id field of the pom.xml
# settings-path: ${{ github.workspace }} # location for the settings.xml file
# - name: Build with Gradle (Unix)
# if: ${{ matrix.os != 'windows-latest' }}
# run: |
# cd ${{ github.workspace }}/java/amalthea
# ./gradlew build
# - name: Build with Gradle (Windows)
# if: ${{ matrix.os == 'windows-latest' }}
# run: |
# cd ${{ github.workspace }}\java\amalthea
# .\gradlew.bat jar
# test-sdf3-build:
# strategy:
# matrix:
# os: [ubuntu-latest, macos-latest, windows-latest]
# java: [1.11, 1.15]
# runs-on: ${{ matrix.os }}
# steps:
# - uses: actions/checkout@v2
# - name: Set up JDK ${{ matrix.java }}
# uses: actions/[email protected]
# with:
# java-version: ${{ matrix.java }}
# server-id: io.github.forsyde # Value of the distributionManagement/repository/id field of the pom.xml
# settings-path: ${{ github.workspace }} # location for the settings.xml file
# - name: Build with Gradle (Unix)
# if: ${{ matrix.os != 'windows-latest' }}
# run: |
# cd ${{ github.workspace }}/java/sdf3
# ./gradlew build
# - name: Build with Gradle (Windows)
# if: ${{ matrix.os == 'windows-latest' }}
# run: |
# cd ${{ github.workspace }}\java\sdf3
# .\gradlew.bat build