-
-
Notifications
You must be signed in to change notification settings - Fork 15
83 lines (81 loc) · 2.37 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
name: CI
on:
push:
branches:
- 'master'
pull_request:
branches:
- '*'
jobs:
windows:
name: Windows (Java 17)
runs-on: windows-latest
permissions:
contents: read
packages: read
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: 17
- name: Build & Test
uses: eskatos/gradle-command-action@v1
with:
arguments: build test -PskipSpotless -PgithubAccessToken=${{ secrets.GITHUB_TOKEN }} --no-daemon
distributions-cache-enabled: true
dependencies-cache-enabled: true
configuration-cache-enabled: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
linux:
name: Linux (Java 17)
runs-on: ubuntu-latest
permissions:
contents: read
packages: read
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: 17
- name: Apt update
run: sudo apt-get update
- name: Install libsigc++ and glibmm
run: sudo apt-get install -y libsigc++-2.0-dev libglibmm-2.4-dev libgtk-3-dev libgtkmm-3.0-dev --fix-missing
- name: Build & Test
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: xvfb-run -a -server-num=1 --server-args="-screen 0 2000x3000x16"
./gradlew build test -PskipSpotless -PgithubAccessToken=${{ secrets.GITHUB_TOKEN }} --no-daemon
macos:
name: macOS (Java 17)
runs-on: macos-latest
permissions:
contents: read
packages: read
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: 17
- name: Build & Test
uses: eskatos/gradle-command-action@v1
with:
arguments: build test -PskipSpotless -PmacOSciModeFix -PgithubAccessToken=${{ secrets.GITHUB_TOKEN }} --no-daemon
distributions-cache-enabled: true
dependencies-cache-enabled: true
configuration-cache-enabled: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}