forked from OpenLI-NZ/openli
-
Notifications
You must be signed in to change notification settings - Fork 0
82 lines (77 loc) · 1.84 KB
/
compile-test.yaml
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
name: OpenLI standard build test
on:
push:
branches:
- develop
pull_request:
branches:
- master
- develop
workflow_dispatch:
jobs:
pre_job:
name: Prerequisite checks
runs-on: ubuntu-latest
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@master
with:
concurrent_skipping: 'same_content'
cancel_others: 'true'
run-build-test-debian:
name: Run tests ${{ matrix.target }}
needs: pre_job
if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
runs-on: ubuntu-latest
container:
image : ${{ matrix.target }}
strategy:
fail-fast: false
matrix:
arch:
- amd64
target:
- "debian:latest"
- "ubuntu:latest"
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Install prereq packages
run: |
./debpkg-setup.sh
mk-build-deps -i -r -t 'apt-get -f -y --force-yes'
- name: Set up build
run: |
./bootstrap.sh
./configure
- name: Compile
run: make
run-build-test-rpm:
name: Run tests ${{ matrix.target }}
needs: pre_job
if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
runs-on: ubuntu-latest
container:
image : ${{ matrix.target }}
strategy:
fail-fast: false
matrix:
arch:
- amd64
target:
- "rockylinux:9"
- "rockylinux:8"
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Install prereq packages
run: |
./rpmpkg-setup.sh ${{ matrix.target }}
- name: Set up build
run: |
./bootstrap.sh
./configure
- name: Compile
run: make