From f8c47aefc59414a4a0dada362038705a0061487b Mon Sep 17 00:00:00 2001 From: Heiko Thiery Date: Mon, 28 Oct 2024 16:33:03 +0100 Subject: [PATCH] actions: add compile job Signed-off-by: Heiko Thiery --- .github/workflows/compile.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/compile.yml diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml new file mode 100644 index 0000000..ab4bf15 --- /dev/null +++ b/.github/workflows/compile.yml @@ -0,0 +1,26 @@ +name: compile + +on: [push, pull_request] + +defaults: + run: + shell: bash + +jobs: + build_and_test: + name: Compile on ${{matrix.compiler}} + runs-on: ubuntu-latest + + strategy: + matrix: + compiler: ["gcc-11", "gcc-12", "clang-14", "clang-15"] + + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + + - name: Install dependencies + run: sudo apt-get -y install ${{matrix.compiler}} + + - name: Compile + run: make CC=${{matrix.compiler}}