-
-
Notifications
You must be signed in to change notification settings - Fork 32
127 lines (107 loc) · 3.54 KB
/
release.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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
name: release
on:
push:
tags:
- "v*.*.*"
jobs:
test:
runs-on: ubuntu-20.04
container: stonepreston/juce-x86_64-compiler:latest
steps:
- name: checkout
uses: actions/checkout@v2
with:
submodules: recursive
- name: build using cmake
run: |
cmake -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build --target Tests -j8
- name: run unit tests
run: |
./build/Tests/Tests_artefacts/Release/Tests
build_x86_64:
runs-on: ubuntu-20.04
container: stonepreston/juce-x86_64-compiler:latest
needs: test
steps:
- name: checkout
uses: actions/checkout@v2
with:
submodules: recursive
- name: build
run: |
cmake -B build -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS=-fuse-ld=lld
cmake --build build -j8
zip -r -j LMN-3-x86_64.zip ./build/LMN-3_artefacts/Release/LMN-3 ./LICENSE
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: LMN-3-x86_64
path: LMN-3-x86_64.zip
retention-days: 1
build_arm:
runs-on: ubuntu-20.04
container: stonepreston/juce-arm-linux-cross-compiler:latest
needs: test
steps:
- name: checkout
uses: actions/checkout@v2
with:
submodules: recursive
# -DPACKAGE_TESTS=OFF so that the tests dont get executed once build is finished
- name: build
run: |
cmake -B build -DCMAKE_BUILD_TYPE=Release -DPACKAGE_TESTS=OFF -DCMAKE_TOOLCHAIN_FILE=/toolchain/toolchain.cmake
cmake --build build -j8
zip -r -j LMN-3-arm-linux-gnueabihf.zip ./build/LMN-3_artefacts/Release/LMN-3 ./LICENSE
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: LMN-3-arm-linux-gnueabihf
path: LMN-3-arm-linux-gnueabihf.zip
retention-days: 1
build_aarch64:
runs-on: ubuntu-20.04
container: stonepreston/juce-aarch64-linux-cross-compiler:latest
needs: test
steps:
- name: checkout
uses: actions/checkout@v2
with:
submodules: recursive
# -DPACKAGE_TESTS=OFF so that the tests dont get executed once build is finished
- name: build
run: |
cmake -B build -DCMAKE_BUILD_TYPE=Release -DPACKAGE_TESTS=OFF -DCMAKE_TOOLCHAIN_FILE=/toolchain/toolchain.cmake
cmake --build build -j8
zip -r -j LMN-3-aarch64-linux-gnu.zip ./build/LMN-3_artefacts/Release/LMN-3 ./LICENSE
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: LMN-3-aarch64-linux-gnu
path: LMN-3-aarch64-linux-gnu.zip
retention-days: 1
release:
runs-on: ubuntu-20.04
needs: [build_x86_64, build_arm, build_aarch64]
steps:
- name: Download x86-64 LMN-3 artifact
uses: actions/download-artifact@v3
with:
name: LMN-3-x86_64
- name: Download arm-linux-gnueabihf LMN-3 artifact
uses: actions/download-artifact@v3
with:
name: LMN-3-arm-linux-gnueabihf
- name: Download aarch64-linux-gnu LMN-3 artifact
uses: actions/download-artifact@v3
with:
name: LMN-3-aarch64-linux-gnu
- name: Create Release
uses: softprops/action-gh-release@v1
with:
draft: true
files: |
LMN-3-x86_64.zip
LMN-3-arm-linux-gnueabihf.zip
LMN-3-aarch64-linux-gnu.zip