-
Notifications
You must be signed in to change notification settings - Fork 48
61 lines (59 loc) · 1.43 KB
/
ci.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
name: switchtec-user CI
on: [push, pull_request]
jobs:
linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: configure
run: ./configure
- name: make
run: make -k W=1
linux-clang:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: configure
run: ./configure
- name: make
run: make -k W=1
env:
CC: clang
linux-32bit:
runs-on: ubuntu-latest
steps:
- name: install packages
run: sudo apt-get update; sudo apt-get install gcc-multilib
- uses: actions/checkout@v2
- name: configure
run: ./configure
- name: make
run: make -k W=1
env:
CFLAGS: -m32
LDFLAGS: -m32
windows:
runs-on: ubuntu-latest
steps:
- name: install packages
run: sudo apt-get install gcc-mingw-w64-x86-64 mingw-w64-x86-64-dev
- uses: actions/checkout@v2
- name: configure
run: ./configure --host x86_64-w64-mingw32
- name: make
run: make -k W=1
env:
CC: x86_64-w64-mingw32-gcc
sparse:
runs-on: ubuntu-latest
steps:
- name: install packages
run: sudo apt-get install sparse
- uses: actions/checkout@v2
- name: configure
run: ./configure
- name: make
run: make -k W=1 CFLAGS=-Wsparse-error CFLAGS+=-Wno-vla CFLAGS+=-Wno-old-initializer
env:
CC: cgcc
CFLAGS: