-
-
Notifications
You must be signed in to change notification settings - Fork 1
93 lines (89 loc) · 2.44 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
name: makefile
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
env:
CFLAGS: -Werror -O2
CXXFLAGS: -Werror -O2
DEBIAN_FRONTEND: noninteractive
jobs:
linux:
strategy:
matrix:
container:
- name: debian-11
target: debian:11
- name: debian-12
target: debian:12
- name: ubuntu-20.04
target: ubuntu:20.04
- name: ubuntu-22.04
target: ubuntu:22.04
- name: ubuntu-24.04
target: ubuntu:24.04
runs-on: ubuntu-latest
container:
image: ${{ matrix.container.target }}
steps:
- uses: actions/checkout@v4
- name: Set up dependencies
run: |
apt-get update -qq
apt-get install -yqq g++ libgtk2.0-dev libgtk-3-dev liblilv-dev lv2-dev libx11-dev make pkg-config
- name: Run tests (C)
run: |
make clean >/dev/null
make test -j $(nproc) && ./test
- name: Run tests (C++)
run: |
make clean >/dev/null
make testxx -j $(nproc) && ./testxx
- name: Regular build
run: |
make clean >/dev/null
make -j $(nproc)
- name: Set sha8
run: |
echo "SHA8=$(echo ${{ github.sha }} | cut -c1-8)" >> $GITHUB_ENV
- uses: actions/upload-artifact@v4
with:
name: ${{ github.event.repository.name }}-${{ matrix.container.name }}-${{ github.event.pull_request.number || env.SHA8 }}
path: |
*.lv2
macos:
strategy:
matrix:
target:
- macos-12
- macos-13
- macos-14
runs-on: ${{ matrix.target }}
steps:
- uses: actions/checkout@v4
- name: Set up dependencies
run: |
brew install gtk+ gtk+3 lilv make pkg-config
- name: Run tests (C)
run: |
make clean >/dev/null
make test -j $(sysctl -n hw.logicalcpu) && ./test
- name: Run tests (C++)
run: |
make clean >/dev/null
make testxx -j $(sysctl -n hw.logicalcpu) && ./testxx
- name: Regular build
run: |
make clean >/dev/null
make -j $(sysctl -n hw.logicalcpu)
- name: Set sha8
run: |
echo "SHA8=$(echo ${{ github.sha }} | cut -c1-8)" >> $GITHUB_ENV
- uses: actions/upload-artifact@v4
with:
name: ${{ github.event.repository.name }}-${{ matrix.target }}-${{ github.event.pull_request.number || env.SHA8 }}
path: |
*.lv2