forked from kieselsteini/delve
-
Notifications
You must be signed in to change notification settings - Fork 2
111 lines (109 loc) · 4.33 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
name: build
on:
push:
pull_request:
schedule:
- cron: '0 0 * * 4'
workflow_dispatch:
jobs:
debian:
runs-on: ubuntu-latest
strategy:
matrix:
image: ["ubuntu:jammy", "ubuntu:latest", "debian:bullseye-slim", "debian:stable-slim", "debian:sid-slim"]
container:
image: ${{ matrix.image }}
steps:
- name: Install dependencies
run: |
apt-get update -qq
apt-get install --no-install-recommends -y git ca-certificates gcc libc6-dev make pkg-config libssl-dev libcurl4-openssl-dev libidn2-dev libidn11-dev libmagic-dev
- name: Checkout code
uses: actions/checkout@v2
with:
path: gplaces # mitigation for build failure after CVE-2022-24765 was mitigated
submodules: recursive
fetch-depth: 0
- name: Build
run: |
cd gplaces
CFLAGS="-O3 -Wall -Wextra -pedantic -Wno-unused-result -Wstack-usage=1024 -Werror" make install
make uninstall
make clean
CFLAGS="-O0 -Wall -Wextra -pedantic -Wno-unused-result -Werror" make WITH_LIBIDN2=0
make clean
CFLAGS="-O0 -Wall -Wextra -pedantic -Wno-unused-result -Werror" make WITH_LIBIDN2=0 WITH_LIBIDN=0
make clean
CFLAGS="-O0 -Wall -Wextra -pedantic -Wno-unused-result -Werror" make WITH_LIBMAGIC=0
make clean
CFLAGS="-O0 -Wall -Wextra -pedantic -Wno-unused-result -Werror" make WITH_GOPHER=0 WITH_GOPHERS=0 WITH_SPARTAN=0 WITH_FINGER=0
make clean
CFLAGS="-O0 -Wall -Wextra -pedantic -Wno-unused-result -Werror" make WITH_GOPHER=0 WITH_GOPHERS=1
alpine:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- image: "alpine:3.15"
libssl: openssl
- image: "alpine:3.15"
libssl: libressl
- image: "alpine:latest"
libssl: openssl
- image: "alpine:edge"
libssl: openssl
container:
image: ${{ matrix.image }}
steps:
- name: Install dependencies
run: |
apk add git gcc musl-dev make pkgconf ${{ matrix.libssl }}-dev curl-dev libidn-dev file-dev
- name: Checkout code
uses: actions/checkout@v2
with:
path: gplaces # mitigation for build failure after CVE-2022-24765 was mitigated
submodules: recursive
fetch-depth: 0
- name: Build
run: |
cd gplaces
CFLAGS="-O3 -Wall -Wextra -pedantic -Wno-unused-result -Wstack-usage=1024 -Werror" make install
make uninstall
make clean
CFLAGS="-O0 -Wall -Wextra -pedantic -Wno-unused-result -Werror" make WITH_LIBIDN=0
make clean
CFLAGS="-O0 -Wall -Wextra -pedantic -Wno-unused-result -Werror" make WITH_LIBMAGIC=0
make clean
CFLAGS="-O0 -Wall -Wextra -pedantic -Wno-unused-result -Werror" make WITH_GOPHER=0 WITH_GOPHERS=0 WITH_SPARTAN=0 WITH_FINGER=0 WITH_GUPPY=0
make clean
CFLAGS="-O0 -Wall -Wextra -pedantic -Wno-unused-result -Werror" make WITH_GOPHER=0 WITH_GOPHERS=1
arch:
runs-on: ubuntu-latest
container:
image: archlinux:base
steps:
- name: Install dependencies
run: |
pacman -Syu --noconfirm
pacman -S --noconfirm git gcc make pkgconf libidn
- name: Checkout code
uses: actions/checkout@v2
with:
path: gplaces # mitigation for build failure after CVE-2022-24765 was mitigated
submodules: recursive
fetch-depth: 0
- name: Build
run: |
cd gplaces
CFLAGS="-O3 -Wall -Wextra -pedantic -Wno-unused-result -Wstack-usage=1024 -Werror" make install
make uninstall
make clean
CFLAGS="-O0 -Wall -Wextra -pedantic -Wno-unused-result -Werror" make WITH_LIBIDN2=0
make clean
CFLAGS="-O0 -Wall -Wextra -pedantic -Wno-unused-result -Werror" make WITH_LIBIDN2=0 WITH_LIBIDN=0
make clean
CFLAGS="-O0 -Wall -Wextra -pedantic -Wno-unused-result -Werror" make WITH_LIBMAGIC=0
make clean
CFLAGS="-O0 -Wall -Wextra -pedantic -Wno-unused-result -Werror" make WITH_GOPHER=0 WITH_GOPHERS=0 WITH_SPARTAN=0 WITH_FINGER=0 WITH_GUPPY=0
make clean
CFLAGS="-O0 -Wall -Wextra -pedantic -Wno-unused-result -Werror" make WITH_GOPHER=0 WITH_GOPHERS=1