-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (50 loc) · 1.61 KB
/
gradle.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
name: Java CI
on: [push, pull_request]
jobs:
build_simulator:
strategy:
fail-fast: false
matrix:
platform:
- os: windows-latest
artifact-name: Win64
architecture: x64
- os: ubuntu-latest
artifact-name: Linux
architecture: x64
build-options: "-x test"
- os: macos-latest
artifact-name: macOS
architecture: x64
build-options: "-x test"
runs-on: ${{ matrix.platform.os }}
steps:
- uses: actions/checkout@v4
- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 17
architecture: ${{ matrix.platform.architecture }}
- name: Get current time
uses: josStorer/[email protected]
id: current-time
with:
format: YYYY.MM.DD-HH
- name: Build Simulator
run: ./gradlew build publish -Pversion="${{ steps.current-time.outputs.formattedTime }}" ${{ matrix.platform.build-options }} --continue
- name: Create vendordep UUID
id: generate-uuid
uses: filipstefansson/uuid-action@v1
if: runner.os == 'Linux'
- name: Generate Vendor Dep template
run: |
export VERSION=${{ steps.current-time.outputs.formattedTime }}
export GUID=${{ steps.generate-uuid.outputs.uuid }}
envsubst < snobotsim_vendordep_template.json > build/maven_output/SnobotSim.json
if: runner.os == 'Linux'
- name: Publish Artifacts
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.platform.artifact-name }}
path: build/maven_output