-
-
Notifications
You must be signed in to change notification settings - Fork 62
32 lines (26 loc) · 870 Bytes
/
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
name: build
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: setup prerequisites
shell: bash
run: |
sudo apt update
sudo apt install \
autoconf-archive \
gettext \
libpcsclite-dev
- name: compile
shell: bash
run: |
./bootstrap
export CFLAGS="-Wall -Wextra -Wformat -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wold-style-definition -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wswitch-enum -Wundef -Wuninitialized -Wunused -Wwrite-strings -Wmissing-noreturn -flto=auto -O2 -Wp,-D_FORTIFY_SOURCE=2"
./configure
make V=1
- name: distcheck
shell: bash
run: |
make distcheck DESTDIR=/tmp