-
Notifications
You must be signed in to change notification settings - Fork 6
163 lines (135 loc) · 4.06 KB
/
build-and-test.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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
name: Build and Test
on:
push:
branches:
- dev
- main
pull_request:
branches:
- dev
- main
jobs:
macos-build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
jarch: [ aarch64, x86_64 ]
os: [ macos-12, macos-latest ]
java: [ '8', '9', '11', '15', '17', '20' ]
steps:
- name: Set up Doxygen
run: brew install doxygen
- uses: actions/checkout@v2
- name: Set up Java
uses: actions/setup-java@v2
with:
java-version: ${{ matrix.java }}
architecture: x64
distribution: 'zulu'
cache: 'maven'
- name: Build/test code with Maven
run: |
mvn --activate-profiles ffsampledsp-${{ matrix.jarch }}-macos \
--no-transfer-progress \
--batch-mode \
--file pom.xml \
install
- name: Upload CodeCov Report
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}
if: matrix.os == 'macos-12' && matrix.java == '9' && matrix.jarch == 'x86_64'
- name: Build tagtraum site
run: |
mvn --no-transfer-progress \
--batch-mode \
--activate-profiles ffsampledsp-x86_64-macos \
--file pom.xml \
clean install site:site
if: matrix.os == 'macos-12' && matrix.java == '9' && matrix.jarch == 'x86_64'
windows-build:
runs-on: windows-2019
strategy:
matrix:
arch: [x64, x86]
java: [ '8', '9', '11', '15', '17' ]
include:
- arch: x64
jarch: x86_64
sys: mingw64
env: x86_64
- arch: x86
jarch: i386
sys: mingw32
env: i686
defaults:
run:
shell: msys2 {0}
steps:
- uses: msys2/setup-msys2@v2
with:
msystem: ${{ matrix.sys }}
install: mingw-w64-${{ matrix.env }}-toolchain
path-type: inherit
- uses: actions/checkout@v2
- name: Set up Doxygen
run: |
pacman --noconfirm -S mingw-w64-${{ matrix.env}}-doxygen
- name: Set up Java
uses: actions/setup-java@v2
with:
java-version: ${{ matrix.java }}
architecture: ${{ matrix.arch }}
distribution: 'zulu'
cache: 'maven'
- name: Build/test code with Maven
run: |
mvn --activate-profiles ffsampledsp-${{ matrix.jarch }}-win \
--no-transfer-progress \
--batch-mode \
--file pom.xml \
install
- name: Print lib/include dir
if: always()
run: |
ls -la ffsampledsp-${{ matrix.jarch }}-win\\target\\lib
ls -la ffsampledsp-${{ matrix.jarch }}-win\\target\\native\\include
linux-build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-20.04, ubuntu-latest ]
java: [ '8', '9', '11', '15', '17', '20' ]
arch: [ x64, aarch64 ]
include:
- arch: x64
jarch: x86_64
skiptests: 'false'
- arch: aarch64
jarch: aarch64
skiptests: 'true'
steps:
- name: Set up cross compile toolchain
run: |
sudo apt-get update
sudo apt-get install -y g++-aarch64-linux-gnu gcc-aarch64-linux-gnu crossbuild-essential-arm64
- name: Set up Doxygen
run: sudo apt-get install -y doxygen
- uses: actions/checkout@v2
- name: Set up Java
uses: actions/setup-java@v2
with:
java-version: ${{ matrix.java }}
distribution: 'zulu'
cache: 'maven'
- name: Build/test code with Maven
run: |
mvn --activate-profiles ffsampledsp-${{ matrix.jarch }}-linux \
--no-transfer-progress \
--batch-mode \
--file pom.xml \
install \
-Dmaven.test.skip=${{ matrix.skiptests }}
- name: Print lib dir
if: always()
run: ls -la ffsampledsp-${{ matrix.jarch }}-linux/target/lib