forked from bwatkinson/xdd
-
Notifications
You must be signed in to change notification settings - Fork 2
83 lines (66 loc) · 1.9 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
name: XDD CI
on:
push:
branches: [ "xdd-2.0" ]
pull_request:
branches: [ "*" ]
jobs:
test:
name: build
runs-on: ubuntu-latest
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 install
run: make -C ${{github.workspace}}/build install
- name: run tests
run: |
cd ${{github.workspace}}/build
ctest --output-on-failure
deb:
runs-on: ubuntu-latest
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: build deb
run: make -C ${{github.workspace}}/build package
- name: install deb
if: startsWith(matrix.img, 'ubuntu:')
run: apt install -y ${{github.workspace}}/build/xdd-*.deb
- name: install rpm
if: matrix.img == 'centos:8'
run: yum install -y ${{github.workspace}}/build/xdd-*.rpm
- name: run tests
run: |
cd ${{github.workspace}}/build
ctest --output-on-failure