forked from gnuradio/newsched
-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (63 loc) · 2.09 KB
/
build_and_test.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
name: build and run tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
check-formatting:
name: Check C++ Formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: gnuradio/[email protected]
with:
source: '.'
exclude: './subprojects'
extensions: 'h,hpp,cpp,cc,cc.in'
linux-docker:
# All of these shall depend on the formatting check (needs: check-formatting)
needs: [check-formatting]
runs-on: ubuntu-20.04
# The GH default is 360 minutes (it's also the max as of Feb-2021). However
# we should fail sooner. The only reason to exceed this time is if a test
# hangs.
timeout-minutes: 120
strategy:
# Enabling fail-fast would kill all Dockers if one of them fails. We want
# maximum output.
fail-fast: false
matrix:
# For every distro we want to test here, add one key 'distro' with a
# descriptive name, and one key 'containerid' with the name of the
# container (i.e., what you want to docker-pull)
include:
- distro: 'Ubuntu 20.04'
containerid: 'mormj/newsched-ci-docker:ubuntu-20.04'
cxxflags: -Werror
- distro: 'Ubuntu 22.04'
containerid: 'mormj/newsched-ci-docker:ubuntu-22.04'
cxxflags: -Werror
- distro: 'Fedora 34'
containerid: 'mormj/newsched-ci-docker:fedora-34'
cxxflags: ''
name: ${{ matrix.distro }}
container:
image: ${{ matrix.containerid }}
volumes:
- build_data:/build
options: --cpus 2
steps:
- uses: actions/checkout@v2
name: Checkout Project
- name: Meson Setup
run: 'cd ${GITHUB_WORKSPACE} && meson setup build --buildtype=debugoptimized -Denable_testing=true'
- name: Make
run: 'cd ${GITHUB_WORKSPACE}/build && ninja'
- name: Make Test
run: 'cd ${GITHUB_WORKSPACE}/build && ninja test'
- uses: actions/upload-artifact@v1
if: failure()
with:
name: Linux_Meson_Testlog
path: build/meson-logs/testlog.txt