-
Notifications
You must be signed in to change notification settings - Fork 101
80 lines (60 loc) · 1.64 KB
/
makefile.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
name: build
on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
jobs:
ubuntu:
runs-on: ubuntu-latest
strategy:
matrix:
build:
- name: default
install_packages: valgrind
test: test-memory
- name: clang sanitizers
install_packages: clang
test: test
make_opts: >
CC=clang
CFLAGS="-fsanitize=address,undefined,signed-integer-overflow -Wformat -Werror=format-security -Werror=array-bounds -g"
LDFLAGS="-fsanitize=address,undefined,signed-integer-overflow -g"
steps:
- uses: actions/checkout@v3
- name: install libcurl
run: |
sudo apt-get update
sudo apt-get install libcurl4-openssl-dev ${{ matrix.build.install_packages }}
- name: code style check
run: make checksrc
- name: make
run: make ${{ matrix.build.make_opts }}
- name: sanity test
run: ./trurl -v
- name: test
run: make ${{matrix.build.test}}
cygwin:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: install cygwin
uses: cygwin/cygwin-install-action@master
with:
packages: curl, libcurl-devel, libcurl4, make, gcc-core, python39
- name: make
run: make
- name: sanity test
run: ./trurl -v
- name: test
run: make test
macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: make
run: make
- name: sanity test
run: ./trurl -v
- name: test
run: make test