-
-
Notifications
You must be signed in to change notification settings - Fork 34
61 lines (46 loc) · 1.41 KB
/
build-gtk.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
name: GTK builds
on: push
env:
BUILD_TYPE: Release
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- triple: 'x86_64-linux-gnu'
target: 'linux'
- triple: 'aarch64-linux-gnu'
target: 'linux'
# Doesn't work, gtk_d doesn't support those platforms.
# - triple: 'x86_64-windows-msvc'
# target: 'windows'
# - triple: 'x86_64-apple-darwin'
# target: 'macos'
# - triple: 'arm64-apple-macos'
# target: 'macos'
name: Build GTK for ${{ matrix.triple }}
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Update APT repos
run: sudo apt-get update
- name: Set-up D compiler
uses: ./.github/actions/setup-d-compiler
with:
target-triple: ${{ matrix.triple }}
- name: Write version file
uses: ./.github/actions/write-version-file
- name: Build
run: dub build -b release-debug --compiler=ldc2 --arch ${{ matrix.triple }} :gtk-frontend
- name: Move files around for artifcation
uses: ./.github/actions/rename-files
with:
build-tag: gtk-${{ matrix.triple }}
- uses: actions/upload-artifact@v3
with:
name: sideloader-gtk-${{ matrix.triple }}
path: |
${{github.workspace}}/bin/*