Skip to content

Commit

Permalink
actions: add compile job
Browse files Browse the repository at this point in the history
Signed-off-by: Heiko Thiery <[email protected]>
  • Loading branch information
hthiery committed Oct 28, 2024
1 parent 59694cc commit f8c47ae
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/compile.yml
Original file line number Diff line number Diff line change
@@ -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}}

0 comments on commit f8c47ae

Please sign in to comment.