-
Notifications
You must be signed in to change notification settings - Fork 12
67 lines (67 loc) · 2.23 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
64
65
66
67
name: build and run tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
linux-docker:
# All of these shall depend on the formatting check (needs: check-formatting)
runs-on: ubuntu-24.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)
distro:
- name: 'Ubuntu 24.04'
containerid: 'ghcr.io/gnuradio/gnuradio-docker:ubuntu-24.04'
cxxflags: -Werror
- name: 'Fedora 40'
containerid: 'ghcr.io/gnuradio/gnuradio-docker:fedora-40'
cxxflags: ''
# - distro: 'CentOS 8.3'
# containerid: 'gnuradio/ci:centos-8.3-3.9'
# cxxflags: -Werror
# - distro: 'Debian 10'
# containerid: 'gnuradio/ci-debian-10-3.9:1.0'
# cxxflags: -Werror
compiler:
- name: "gcc"
command: "g++"
- name: "clang"
command: "clang++"
name: ${{ matrix.distro.name }} - ${{ matrix.compiler.name }}
container:
image: ${{ matrix.distro.containerid }}
volumes:
- build_data:/build
options: --cpus 2
steps:
- uses: actions/checkout@v3
name: Checkout Project
- name: Meson Setup
env:
CXX: ${{ matrix.compiler.command }}
working-directory: ${{ github.workspace }}
run: '$CXX --version && meson setup build --buildtype=debugoptimized -Denable_testing=true'
- name: Make
working-directory: ${{ github.workspace }}/build
run: 'ninja'
- name: Make Test
working-directory: ${{ github.workspace }}/build
run: 'ninja test'
- uses: actions/upload-artifact@v3
if: failure()
with:
name: Linux_Meson_Testlog
path: build/meson-logs/testlog.txt