-
Notifications
You must be signed in to change notification settings - Fork 321
56 lines (42 loc) · 1.15 KB
/
openfortivpn.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
---
name: Tests
on:
push:
pull_request:
branches:
- master
permissions:
contents: read
jobs:
astyle:
name: Style
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Install Dependencies
run: sudo apt-get install -y astyle
- name: Artistic Style
run: ./tests/lint/astyle.sh $(git ls-files '*.[ch]')
- name: Linux Kernel Coding Style
run: ./tests/lint/checkpatch.sh $(git ls-files '*.[ch]')
- name: EOL at EOF
run: ./tests/lint/eol-at-eof.sh $(git ls-files)
- name: Line Length
run: ./tests/lint/line_length.py $(git ls-files '*.[ch]')
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Install Dependencies
run: |
sudo apt-get install -y pkg-config
./tests/ci/install_openssl.sh $HOME/.openfortivpn-deps
- name: Build
run: |
./autogen.sh
export PKG_CONFIG_PATH="$HOME/.openfortivpn-deps/lib/pkgconfig"
./configure --prefix=/usr --sysconfdir=/etc
make