-
Notifications
You must be signed in to change notification settings - Fork 0
159 lines (148 loc) · 5.8 KB
/
c-cpp.yml
File metadata and controls
159 lines (148 loc) · 5.8 KB
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
name: C/C++ CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
ubuntu-build:
name: Ubuntu build with jackaudio
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: environement
run: sudo apt-get install -y libjack-jackd2-dev
- name: setup build folders
run: |
mkdir build
mkdir build/Ubuntu
- name: build
run: |
cd cpp_version
make WITH_JACKAUDIO=YES BUILDDIR=../build/Ubuntu/ EXECDIR=../build/Ubuntu/ DEFAULTWAVE=SINE
make WITH_JACKAUDIO=YES BUILDDIR=../build/Ubuntu/ EXECDIR=../build/Ubuntu/ DEFAULTWAVE=PULSES
make WITH_JACKAUDIO=YES BUILDDIR=../build/Ubuntu/ EXECDIR=../build/Ubuntu/ DEFAULTWAVE=TRIANGLES
- name: make things easy for the non devs
run: |
cd build/Ubuntu
tar -cf The_objects_files.tar *.o --remove-files
- name: return workflow as artifacts
uses: actions/upload-artifact@v4
with:
name: multisignalgene_build_ubuntu
path: build
macos-x-build:
runs-on: macOS-14
name: Mac OS X build with jackaudio
steps:
- uses: actions/checkout@v4
- name: environement
run: brew install jack
- name: setup build folders
run: |
mkdir build
mkdir build/MacOS
- name: build
run: |
cd cpp_version
make WITH_JACKAUDIO=YES BUILDDIR=../build/MacOS/ EXECDIR=../build/MacOS/ DEFAULTWAVE=SINE
make WITH_JACKAUDIO=YES BUILDDIR=../build/MacOS/ EXECDIR=../build/MacOS/ DEFAULTWAVE=PULSES
make WITH_JACKAUDIO=YES BUILDDIR=../build/MacOS/ EXECDIR=../build/MacOS/ DEFAULTWAVE=TRIANGLES
- name: make things easy for the non devs
run: |
cd build/MacOS
tar -cf The_objects_files.tar *.o
rm -f *.o
- name: return workflow as artifacts
uses: actions/upload-artifact@v4
with:
name: multisignalgene_build_macOS
path: build
ubuntu-build-without-jackaudio:
name: Ubuntu build without
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: setup build folders
run: |
mkdir build
mkdir build/Ubuntu_without_jackaudio
- name: build
run: |
cd cpp_version
make WITH_JACKAUDIO=NO BUILDDIR=../build/Ubuntu_without_jackaudio/ EXECDIR=../build/Ubuntu_without_jackaudio/ DEFAULTWAVE=SINE
make WITH_JACKAUDIO=NO BUILDDIR=../build/Ubuntu_without_jackaudio/ EXECDIR=../build/Ubuntu_without_jackaudio/ DEFAULTWAVE=PULSES
make WITH_JACKAUDIO=NO BUILDDIR=../build/Ubuntu_without_jackaudio/ EXECDIR=../build/Ubuntu_without_jackaudio/ DEFAULTWAVE=TRIANGLES
- name: make things easy for the non devs
run: |
cd build/Ubuntu_without_jackaudio
tar -cf The_objects_files.tar *.o --remove-files
- name: return workflow as artifacts
uses: actions/upload-artifact@v4
with:
name: multisignalgene_build_ubuntu_withoutjack
path: build
macos-x-build-without-jackaudio:
runs-on: macOS-latest
name: Mac OS X build without
steps:
- uses: actions/checkout@v4
- name: setup build folders
run: |
mkdir build
mkdir build/MacOS_without_jackaudio
- name: build
run: |
cd cpp_version
make WITH_JACKAUDIO=NO BUILDDIR=../build/MacOS_without_jackaudio/ EXECDIR=../build/MacOS_without_jackaudio/ DEFAULTWAVE=SINE
make WITH_JACKAUDIO=NO BUILDDIR=../build/MacOS_without_jackaudio/ EXECDIR=../build/MacOS_without_jackaudio/ DEFAULTWAVE=PULSES
make WITH_JACKAUDIO=NO BUILDDIR=../build/MacOS_without_jackaudio/ EXECDIR=../build/MacOS_without_jackaudio/ DEFAULTWAVE=TRIANGLES
- name: make things easy for the non devs
run: |
cd build/MacOS_without_jackaudio
tar -cf The_objects_files.tar *.o
rm -f *.o
- name: return workflow as artifacts
uses: actions/upload-artifact@v4
with:
name: multisignalgene_build_macOS_withoutjack
path: build
windows-build-without-jackaudio:
runs-on: ubuntu-latest
name: Windows build without
steps:
- uses: actions/checkout@v4
- name: environement
run: sudo apt-get install -y libjack-jackd2-dev
- name: Windows env
run: |
sudo apt-get install mingw-w64
- name: setup build folders
run: |
mkdir build
mkdir build/Windows_without_jackaudio
- name: build
run: |
cd cpp_version
make CXX=x86_64-w64-mingw32-g++-posix WITH_JACKAUDIO=NO BUILDDIR=../build/Windows_without_jackaudio/ EXECDIR=../build/Windows_without_jackaudio/ DEFAULTWAVE=SINE
make CXX=x86_64-w64-mingw32-g++-posix WITH_JACKAUDIO=NO BUILDDIR=../build/Windows_without_jackaudio/ EXECDIR=../build/Windows_without_jackaudio/ DEFAULTWAVE=PULSES
make CXX=x86_64-w64-mingw32-g++-posix WITH_JACKAUDIO=NO BUILDDIR=../build/Windows_without_jackaudio/ EXECDIR=../build/Windows_without_jackaudio/ DEFAULTWAVE=TRIANGLES
- name: make things easy for the non devs
run: |
cd build/Windows_without_jackaudio
tar -cf The_objects_files.tar *.o --remove-files
- name: return workflow as artifacts
uses: actions/upload-artifact@v4
with:
name: multisignalgene_build_windows_withoutjack
path: build
merge:
runs-on: ubuntu-latest
needs: [ windows-build-without-jackaudio, macos-x-build-without-jackaudio, ubuntu-build-without-jackaudio,macos-x-build, ubuntu-build ]
steps:
- name: Merge artifacts
uses: actions/upload-artifact/merge@v4
with:
delete-merged: true
name: MultiSignalGene_builds