summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Braun <martin@gnuradio.org>2021-01-18 15:10:28 +0100
committerMartin Braun <martin@gnuradio.org>2021-01-18 08:03:13 -0800
commit8be27ee0863490a7fb9dacbfe90ebd03173520df (patch)
tree1e6b1176c43852bac0bf623184a7b1f310c1fd62
parente12b28307d7cd991edbcb30a3b85d50fec6aeda9 (diff)
Add GitHub Actions for master branch
For now, this is identical to the 3.9 GH actions. Should the 3.10 (aka master) dependencies change, we need new containers here. Signed-off-by: Martin Braun <martin@gnuradio.org>
-rw-r--r--.github/workflows/check-pr-formatting.yml18
-rw-r--r--.github/workflows/make-test.yml92
2 files changed, 92 insertions, 18 deletions
diff --git a/.github/workflows/check-pr-formatting.yml b/.github/workflows/check-pr-formatting.yml
deleted file mode 100644
index ae47e85c1b..0000000000
--- a/.github/workflows/check-pr-formatting.yml
+++ /dev/null
@@ -1,18 +0,0 @@
-name: Check PR Formatting
-
-on:
- pull_request:
- paths-ignore:
- - 'volk/'
-
-jobs:
- build:
- runs-on: ubuntu-latest
-
- steps:
- - uses: actions/checkout@v2
- - uses: gnuradio/clang-format-lint-action@v0.5-4
- with:
- source: '.'
- exclude: './volk'
- extensions: 'h,hpp,cpp,cc'
diff --git a/.github/workflows/make-test.yml b/.github/workflows/make-test.yml
new file mode 100644
index 0000000000..e8329d7928
--- /dev/null
+++ b/.github/workflows/make-test.yml
@@ -0,0 +1,92 @@
+name: 'Make Test'
+on:
+ push:
+ branches:
+ - master
+ pull_request:
+ branches:
+ - master
+jobs:
+ check-formatting:
+ name: Check C++ Formatting
+ runs-on: ubuntu-20.04
+ steps:
+ - uses: actions/checkout@v2
+ - uses: gnuradio/clang-format-lint-action@v0.5-4
+ with:
+ source: '.'
+ exclude: './volk'
+ extensions: 'h,hpp,cpp,cc'
+ # All of these shall depend on the formatting check (needs: check-formatting)
+ ubuntu-20_04:
+ name: Ubuntu 20.04
+ needs: check-formatting
+ runs-on: ubuntu-20.04
+ container:
+ image: 'gnuradio/ci-ubuntu-20.04-3.9:0.3'
+ volumes:
+ - build_data:/build
+ options: --cpus 2
+ steps:
+ - uses: actions/checkout@v2
+ name: Checkout Project
+ - name: CMake
+ run: 'cd /build && cmake ${GITHUB_WORKSPACE}'
+ - name: Make
+ run: 'cd /build && make -j2'
+ - name: Make Test
+ run: 'cd /build && ctest --output-on-failure -E "qa_uhd|qa_uncaught_exception|qa_header_payload_demux|qa_agc|qa_cpp_py_binding|qa_cpp_py_binding_set|qa_ctrlport_probes|qa_file_taps_loader|qa_qtgui"'
+ fedora33:
+ name: Fedora 33
+ needs: check-formatting
+ runs-on: ubuntu-20.04 # This can run on whatever
+ container:
+ image: 'gnuradio/ci-fedora-33-3.9:1.0'
+ volumes:
+ - build_data:/build
+ options: --cpus 2
+ steps:
+ - uses: actions/checkout@v2
+ name: Checkout Project
+ - name: CMake
+ run: 'cd /build && cmake ${GITHUB_WORKSPACE} -DENABLE_DOXYGEN=OFF'
+ - name: Make
+ run: 'cd /build && make -j2'
+ - name: Make Test
+ run: 'cd /build && ctest --output-on-failure -E "qa_uhd|qa_uncaught_exception|qa_header_payload_demux|qa_agc|qa_cpp_py_binding|qa_cpp_py_binding_set|qa_ctrlport_probes|qa_file_taps_loader|qa_qtgui"'
+ centos8_3:
+ name: Centos 8.3
+ needs: check-formatting
+ runs-on: ubuntu-20.04 # This can run on whatever
+ container:
+ image: 'gnuradio/ci-centos-8.3-3.9:1.0'
+ volumes:
+ - build_data:/build
+ options: --cpus 2
+ steps:
+ - uses: actions/checkout@v2
+ name: Checkout Project
+ - name: CMake
+ run: 'cd /build && cmake ${GITHUB_WORKSPACE} -DENABLE_DOXYGEN=OFF -DBoost_unit_test_framework_FOUND=ON'
+ - name: Make
+ run: 'cd /build && make -j2'
+ - name: Make Test
+ run: 'cd /build && ctest --output-on-failure -E "qa_uhd|qa_uncaught_exception|qa_header_payload_demux|qa_agc|qa_cpp_py_binding|qa_cpp_py_binding_set|qa_ctrlport_probes|qa_file_taps_loader|qa_qtgui"'
+ debian10:
+ name: Debian 10
+ needs: check-formatting
+ runs-on: ubuntu-20.04 # This can run on whatever
+ container:
+ image: 'gnuradio/ci-debian-10-3.9:1.0'
+ volumes:
+ - build_data:/build
+ options: --cpus 2
+ steps:
+ - uses: actions/checkout@v2
+ name: Checkout Project
+ - name: CMake
+ run: 'cd /build && cmake ${GITHUB_WORKSPACE} -DENABLE_DOXYGEN=OFF -DBoost_unit_test_framework_FOUND=ON'
+ - name: Make
+ run: 'cd /build && make -j2'
+ - name: Make Test
+ run: 'cd /build && ctest --output-on-failure -E "qa_uhd|qa_uncaught_exception|qa_header_payload_demux|qa_agc|qa_cpp_py_binding|qa_cpp_py_binding_set|qa_ctrlport_probes|qa_file_taps_loader|qa_qtgui"'