-
Notifications
You must be signed in to change notification settings - Fork 1
72 lines (72 loc) · 2.11 KB
/
build.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
name: 'Build'
on: 'push'
jobs:
linux:
name: "Linux"
runs-on: 'ubuntu-latest'
container:
image: 'ghcr.io/lmichaelis/images:clang-14'
steps:
- uses: 'actions/checkout@v3'
with:
submodules: 'recursive'
- name: 'Configure'
run: 'cmake -B build -DCMAKE_BUILD_TYPE=Release'
- name: 'Build'
run: 'cmake --build build --config Release'
- name: 'Publish Library'
uses: 'actions/upload-artifact@v3'
with:
name: 'Linux x86-64 Shared Object'
path: 'build/libdmusic*'
android:
name: "Android"
runs-on: 'ubuntu-latest'
container:
image: 'cimg/android:2023.04.1-ndk'
steps:
- uses: 'actions/checkout@v3'
with:
submodules: 'recursive'
- name: 'Configure'
run: 'cmake -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_SYSTEM_NAME=Android -DCMAKE_ANDROID_NDK="$(ANDROID_NDK_ROOT)" -DCMAKE_ANDROID_ARCH_ABI=arm64-v8a -DCMAKE_ANDROID_STL_TYPE=c++_static'
- name: 'Build'
run: 'cmake --build build --config Release'
- name: 'Publish Library'
uses: 'actions/upload-artifact@v3'
with:
name: 'ARM x64 Shared Object'
path: 'build/libdmusic*'
windows:
name: "Windows"
runs-on: 'windows-latest'
defaults:
run:
shell: 'msys2 {0}'
steps:
- uses: 'actions/checkout@v3'
with:
submodules: 'recursive'
- name: 'Install MinGW'
uses: 'msys2/setup-msys2@v2'
with:
msystem: 'mingw64'
update: true
install: >-
git
make
pacboy: >-
toolchain:p
cmake:p
ninja:p
- name: 'Configure'
run: 'cmake -B build -G "MSYS Makefiles" -DCMAKE_BUILD_TYPE=Release'
- name: 'Build'
run: 'cmake --build build --config Release -j 2'
- name: 'Rename Artifact'
run: 'mv build/libdmusic.dll build/dmusic.dll'
- name: 'Publish Library'
uses: 'actions/upload-artifact@v3'
with:
name: 'Windows x86-64 DLL'
path: 'build/dmusic.dll'