-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (46 loc) · 1.32 KB
/
test.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
name: test
on:
push:
branches:
- '*'
jobs:
gradle:
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
artifact_name: memosc_${{ github.ref_name }}_amd64.deb
asset_name: memosc_${{ github.ref_name }}_amd64.deb
type: Deb
dir: deb
- os: windows-latest
artifact_name: memosc-${{ github.ref_name }}.exe
asset_name: memosc-${{ github.ref_name }}.exe
type: Exe
dir: exe
- os: macos-latest
artifact_name: memosc-${{ github.ref_name }}.dmg
asset_name: memosc-${{ github.ref_name }}.dmg
type: Dmg
dir: dmg
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: oracle
java-version: 19
cache: 'gradle'
- uses: ConorMacBride/install-package@v1
with:
apt: fakeroot
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- uses: SebRollen/[email protected]
id: read_toml
with:
file: 'gradle/libs.versions.toml'
field: 'versions.packageVersion'
- name: Execute Gradle build
run: ./gradlew packageRelease${{ matrix.type }} --no-daemon