Skip to content

ci: Test compilation with clang #309

ci: Test compilation with clang

ci: Test compilation with clang #309

Workflow file for this run

name: Test
on: [push, pull_request]
env:
BUILD_TYPE: Release
jobs:
gcc:
runs-on: ubuntu-latest
strategy:
matrix:
container: ["3.10.3-ubuntu-focal", "3.10.5.1-ubuntu-jammy"]
container:
image: igorfreire/gnuradio-oot-dev:${{ matrix.container }}
steps:
- uses: actions/checkout@v2
with:
submodules: "recursive"
- name: Install dependencies
run: apt update && apt install -y libsndfile1-dev
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
- name: Test
run: cd ${{github.workspace}}/build && ctest -C ${{env.BUILD_TYPE}} -VV
clang:
runs-on: ubuntu-latest
container:
image: igorfreire/gnuradio-oot-dev:3.10.5.1-ubuntu-jammy
env:
CC: /usr/bin/clang
CXX: /usr/bin/clang++
steps:
- uses: actions/checkout@v2
with:
submodules: "recursive"
- name: Install dependencies
run: apt update && apt install -y libsndfile1-dev clang
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
- name: Test
run: cd ${{github.workspace}}/build && ctest -C ${{env.BUILD_TYPE}} -VV