forked from bwatkinson/xdd
-
Notifications
You must be signed in to change notification settings - Fork 2
57 lines (44 loc) · 1.25 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
name: XDD CI
on: [push, pull_request]
jobs:
test:
name: build
runs-on: ubuntu-latest
env:
CFLAGS: -Wall -Wextra -Wno-unused-parameter -Werror -pedantic
strategy:
matrix:
img: ["ubuntu:20.04", "ubuntu:22.04", "centos:8" ]
fail-fast: true
container:
image: ${{ matrix.img }}
steps:
- uses: actions/checkout@v3
- name: Ubuntu Prerequisites
if: startsWith(matrix.img, 'ubuntu:')
run: contrib/CI/ubuntu.sh
- name: CentOS 8 Prerequisites
if: matrix.img == 'centos:8'
run: contrib/CI/centos8.sh
- name: Configure
run: cmake -B ${{github.workspace}}/build
- name: Make
run: make -C ${{github.workspace}}/build
- name: Make Package
run: make -C ${{github.workspace}}/build package
- name: Install
run: make -C ${{github.workspace}}/build install
- name: Run Tests
run: |
cd ${{github.workspace}}/build
ctest --output-on-failure
shellcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: apt update
run: sudo apt-get update
- name: Install ShellCheck
run: sudo apt -y install shellcheck
- name: Run ShellCheck
run: contrib/CI/shellcheck.sh .