Skip to content

Commit 150a3df

Browse files
committed
Platform specific locator builds
1 parent 9109b9b commit 150a3df

File tree

2 files changed

+43
-14
lines changed

2 files changed

+43
-14
lines changed

.github/workflows/release.yml

Lines changed: 42 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,33 +6,62 @@ on:
66
- 'v*' # Trigger on version tags like v1.0.0
77

88
jobs:
9+
build:
10+
runs-on: ${{ matrix.os }}
11+
strategy:
12+
matrix:
13+
os: [ ubuntu-latest, macOS-latest, windows-latest ]
14+
fail-fast: false
15+
name: ${{ matrix.os }}
16+
- name: Git checkout
17+
uses: actions/checkout@v2
18+
19+
- name: Go to install-locator
20+
run: cd install-locator
21+
22+
- name: Install Java
23+
uses: actions/setup-java@v4
24+
with:
25+
java-version: '17'
26+
distribution: 'temurin'
27+
28+
- name: Setup Gradle
29+
uses: gradle/actions/setup-gradle@v4
30+
31+
- name: Build Locator
32+
run: ./gradlew runtime
33+
34+
- name: Upload DMG as an artifact
35+
uses: actions/upload-artifact@v2
36+
with:
37+
name: install-locator-${{ matrix.os }}
38+
path: build/image.zip
39+
940
release:
1041
runs-on: ubuntu-latest
42+
needs: build
1143

1244
permissions:
13-
contents: write # Required to upload to release
45+
contents: write
1446

1547
steps:
1648
- name: Checkout code
1749
uses: actions/checkout@v3
1850

51+
- name: Download artifacts
52+
uses: actions/download-artifact@v3
53+
with:
54+
pattern: install-locator-*
55+
56+
- name: Unzip artifacts
57+
run: |
58+
unzip -o install-locator-*.zip
59+
1960
- name: Set up Node.js
2061
uses: actions/setup-node@v3
2162
with:
2263
node-version: 18
2364

24-
- name: Install Java
25-
uses: actions/setup-java@v4
26-
with:
27-
java-version: '17'
28-
distribution: 'temurin'
29-
30-
- name: Setup Gradle
31-
uses: gradle/actions/setup-gradle@v4
32-
33-
- name: Build with Gradle
34-
run: ./install-locator/gradlew runtime -p ./install-locator
35-
3665
- name: Install dependencies
3766
run: npm ci
3867

install-locator/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ plugins {
55
}
66

77
group = "org.processing"
8-
version = "1.0-SNAPSHOT"
8+
version = "1.0"
99

1010
application {
1111
mainClass.set("InstallLocatorKt")

0 commit comments

Comments
 (0)