-
Notifications
You must be signed in to change notification settings - Fork 1
244 lines (216 loc) · 6.18 KB
/
c-cpp.yml
File metadata and controls
244 lines (216 loc) · 6.18 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
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
name: C/C++ CI
on:
push:
branches: [ "main", "ci" ]
pull_request:
branches: [ "main", "ci" ]
jobs:
build-ubuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install libfuse3 and headers
run: |
sudo apt update
sudo apt install libfuse3-dev
- name: autogen
run: ./autogen.sh
- name: configure
run: ./configure CFLAGS='-Wall -Wextra'
- name: make
run: make
- name: make check
run: make check
- name: make distcheck
run: make distcheck
build-ubuntu-noble-kernel:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v3
- name: make
run: cd targets/linux && make
build-ubuntu-jammy-kernel:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: make
run: cd targets/linux && make
build-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Install autotools, pkg-config and macfuse
run: |
brew install autoconf automake libtool pkg-config macfuse
- name: autogen
run: ./autogen.sh
- name: configure
run: ./configure --disable-fuse3 CFLAGS='-Wall -Wextra'
- name: make
run: make
- name: make check
run: make check
- name: make distcheck
run: make distcheck DISTCHECK_CONFIGURE_FLAGS='--disable-fuse3'
build-mingw-w64-i686:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install mingw-w64 and libfuse-dev packages
run: |
sudo apt update
sudo apt install mingw-w64 libfuse-dev
- name: Download and extract Dokan library
run: curl -L -O 'https://github.com/dokan-dev/dokany/releases/download/v2.0.6.1000/dokan.zip' && ( mkdir dokan && cd dokan && unzip ../dokan.zip )
- name: autogen
run: ./autogen.sh
- name: configure
run: ./configure --host=i686-w64-mingw32 --disable-shared CFLAGS="-Wall -Wextra -I`pwd`/dokan/Win32/Msys2/include/fuse" LDFLAGS="-L`pwd`/dokan/Win32/Release -ldokanfuse2"
- name: make
run: make
- name: make check
run: make check
- name: make distcheck
run: make distcheck
build-mingw-w64-x86_64:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install mingw-w64 and libfuse-dev packages
run: |
sudo apt update
sudo apt install mingw-w64 libfuse-dev
- name: Download and extract Dokan library
run: curl -L -O 'https://github.com/dokan-dev/dokany/releases/download/v2.0.6.1000/dokan.zip' && ( mkdir dokan && cd dokan && unzip ../dokan.zip )
- name: autogen
run: ./autogen.sh
- name: configure
run: ./configure --host=x86_64-w64-mingw32 --disable-shared CFLAGS="-Wall -Wextra -I`pwd`/dokan/x64/Msys2/include/fuse" LDFLAGS="-L`pwd`/dokan/x64/Release -ldokanfuse2"
- name: make
run: make
- name: make check
run: make check
- name: make distcheck
run: make distcheck
build-freebsd:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build in FreeBSD
id: test
uses: vmactions/freebsd-vm@v1
with:
usesh: true
prepare: |
pkg install -y fusefs-libs autoconf automake libtool pkgconf
run: |
./autogen.sh
./configure CFLAGS='-Wall -Wextra'
make
make check
make distcheck
build-netbsd:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build in NetBSD
id: build
uses: vmactions/netbsd-vm@v1
with:
usesh: true
prepare: |
/usr/sbin/pkg_add autoconf automake libtool pkgconf
run: |
./autogen.sh
./configure CFLAGS='-Wall -Wextra'
make
make check
make distcheck
build-openbsd:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build in OpenBSD
id: test
uses: vmactions/openbsd-vm@v1
with:
usesh: true
prepare: |
pkg_add autoconf-2.72p0 automake-1.17 libtool pkgconf
run: |
AUTOCONF_VERSION=2.72 AUTOMAKE_VERSION=1.17 ./autogen.sh
./configure CFLAGS='-Wall -Wextra'
make
make check
make distcheck
build-dragonflybsd:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build in DragonFly BSD
id: build
uses: vmactions/dragonflybsd-vm@v1
with:
usesh: true
prepare: |
pkg install -y fusefs-libs autoconf autoconf-switch automake libtool pkgconf
run: |
./autogen.sh
./configure CFLAGS='-Wall -Wextra'
make
make check
make distcheck
build-openindiana:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build in OpenIndiana
id: build
uses: vmactions/openindiana-vm@v0
with:
usesh: true
prepare: |
pkg install gcc-14 make autoconf automake libtool pkg-config library/libfuse
run: |
./autogen.sh
chmod a+x install-sh
./configure CFLAGS='-Wall -Wextra'
make
make check
make distcheck
build-omnios:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build in OmniOS
id: build
uses: vmactions/omnios-vm@v1
with:
usesh: true
prepare: |
pkg install build-essential autoconf automake libtool pkg-config
pkg set-publisher -G '*' -g https://sfe.opencsw.org/localhostomnios localhostomnios
pkg install libfuse
run: |
./autogen.sh
./configure CFLAGS='-Wall -Wextra'
make
make check
make distcheck
build-solaris:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build in Solaris
id: build
uses: vmactions/solaris-vm@v1
with:
usesh: true
prepare: |
pkg install base-developer-utilities gcc-c autoconf automake libtool pkg-config library/libfuse
run: |
./autogen.sh
./configure CFLAGS='-Wall -Wextra'
make
make check
make distcheck