-
-
Notifications
You must be signed in to change notification settings - Fork 15
106 lines (103 loc) · 3.19 KB
/
libs.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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
name: Build Native Libraries
on:
push:
paths:
- '**.cpp'
- '**.h'
- '**.mm'
- '**.yml'
- '**gradle.*'
pull_request:
paths:
- '**.cpp'
- '**.h'
- '**.mm'
- '**.yml'
- '**gradle.*'
release:
types:
- published
schedule:
- cron: '0 0 1 * *'
jobs:
windows:
name: Windows (Java 17)
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 10
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 17
- name: Build
run: ./gradlew :auto-dark-mode-windows:build --full-stacktrace -PskipSpotless
- name: Upload x86 artifact
uses: actions/upload-artifact@v4
with:
name: windows-x86
path: windows/build/libs/main/x86/auto-dark-mode-windows.dll
- name: Upload x86-64 artifact
uses: actions/upload-artifact@v4
with:
name: windows-x86-64
path: windows/build/libs/main/x86-64/auto-dark-mode-windows.dll
macOS:
name: macOS (Java 17)
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 10
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 17
- name: Build
run: ./gradlew :auto-dark-mode-macos:build --full-stacktrace -PmacOSciModeFix -PskipSpotless
- name: Upload x86-64 artifact
uses: actions/upload-artifact@v4
with:
name: macos-x86-64
path: macos/build/libs/main/x86-64/libauto-dark-mode-macos.dylib
- name: Upload arm64 artifact
uses: actions/upload-artifact@v4
with:
name: macos-arm64
path: macos/build/libs/main/arm64/libauto-dark-mode-macos.dylib
- name: Print x86-64 library information
run: otool -l macos/build/libs/main/x86-64/libauto-dark-mode-macos.dylib && file macos/build/libs/main/x86-64/libauto-dark-mode-macos.dylib
- name: Print arm64 library information
run: otool -l macos/build/libs/main/arm64/libauto-dark-mode-macos.dylib && file macos/build/libs/main/arm64/libauto-dark-mode-macos.dylib
- name: Upload build log
if: always()
uses: actions/upload-artifact@v4
with:
name: build_logs
path: macos/build/tmp
linux-gtk:
name: Linux (Gtk) (Java 17)
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 10
- name: Set up JDK 17
uses: actions/setup-java@v4
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
run: ./gradlew :auto-dark-mode-linux-gtk:build --full-stacktrace -PskipSpotless
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: linux-x86-64
path: linux/gtk/build/libs/main/libauto-dark-mode-linux-gtk.so