-
-
Notifications
You must be signed in to change notification settings - Fork 24
82 lines (67 loc) · 2.09 KB
/
Check.yaml
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
name: Check Build
on:
push:
branches:
- master
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
BuildBinaries:
name: Build application packages
strategy:
matrix:
runtime: [ linux-x64, win-x64, android ]
include:
- runtime: linux-x64
arch: x64
os: ubuntu-latest
shell: bash
build: :desktop:packageUberJarForCurrentOS :desktop:packageDeb
setupCl: ./.github/scripts/SetupClUnix.sh
# - runtime: linux-fedora-x64
# arch: x64
# os: ubuntu-latest
# shell: bash
# build: :desktop:packageRpm
# setupCl: ./.github/scripts/SetupClUnix.sh
- runtime: win-x64
arch: x64
os: windows-latest
shell: powershell
build: :desktop:packageUberJarForCurrentOS :desktop:packageMsi
setupCl: ./.github/scripts/SetupClWindows.ps1
- runtime: android
arch: x64
os: ubuntu-latest
shell: bash
build: :android:assembleStandardRelease
setupCl: ./.github/scripts/SetupClUnix.sh
runs-on: ${{ matrix.os }}
timeout-minutes: 60
defaults:
run:
shell: ${{ matrix.shell }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-java@v3
if: ${{ matrix.runtime != 'linux-fedora-x64' }}
with:
java-version: 17
distribution: adopt
architecture: ${{ matrix.arch }}
- name: Setup Cl
run: ${{ matrix.setupCl }}
- name: Build rpm Package
if: ${{ matrix.runtime == 'linux-fedora-x64' }}
uses: Syer10/Fedora-Java17-Action@v1
with:
command: ./gradlew ${{ matrix.build }} --stacktrace
- name: Build
if: ${{ matrix.runtime != 'linux-fedora-x64' }}
uses: gradle/gradle-build-action@v2
with:
arguments: >
${{ matrix.build }}