-
Notifications
You must be signed in to change notification settings - Fork 0
75 lines (73 loc) · 2.04 KB
/
~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
on:
workflow_call:
inputs:
# Versioning
alphaskia-version:
type: string
description: The version for alphaSkia in format MAJOR.MINOR
required: true
is-release-build:
type: boolean
description: Whether the version is a prerelease or full release
required: false
env:
ALPHASKIA_VERSION_TEMPLATE: ${{ inputs.alphaskia-version }}
IS_RELEASE_BUILD: ${{ inputs.is-release-build }}
jobs:
java:
runs-on: ubuntu-latest
env:
SONATYPE_SIGNING_KEY: ${{ secrets.SONATYPE_SIGNING_KEY }}
SONATYPE_SIGNING_KEY_ID: ${{ secrets.SONATYPE_SIGNING_KEY_ID }}
SONATYPE_SIGNING_PASSWORD: ${{ secrets.SONATYPE_SIGNING_PASSWORD }}
SONATYPE_STAGING_PROFILE_ID: ${{ secrets.SONATYPE_STAGING_PROFILE_ID }}
steps:
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
with:
name: nuke
path: build/bin/Debug/publish/
- uses: actions/download-artifact@v3
with:
path: dist/.organize
- run: ./build.cmd Java
- uses: actions/upload-artifact@v3
with:
name: maven
path: |
lib/java/dist/**/*.*
java-test:
strategy:
fail-fast: false
matrix:
include:
- runs-on: ubuntu-latest
- runs-on: windows-latest
- runs-on: macos-latest
runs-on: ${{ matrix.runs-on }}
needs: [java]
steps:
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
with:
name: nuke
path: build/bin/Debug/publish/
- uses: actions/download-artifact@v3
with:
name: maven
path: dist/.organize/maven
- run: ./build.cmd JavaTest
- uses: actions/upload-artifact@v3
if: always()
with:
name: javatest-${{ matrix.runs-on }}
path: |
test/test-outputs/**/*.*