Skip to content

Commit

Permalink
CI/CD matrix for GNU and Clang Compiler versions within github action…
Browse files Browse the repository at this point in the history
…s - first version
  • Loading branch information
Josee1031 committed Jul 31, 2024
1 parent c900221 commit c4bfd20
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,28 @@ on:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
compiler:
- { name: 'clang', version: '13' }
- { name: 'clang', version: '14' }
- { name: 'clang', version: '15' }
- { name: 'gnu', version: '10' }
- { name: 'gnu', version: '11' }
- { name: 'gnu', version: '12' }
steps:
- uses: actions/checkout@v4

- name: Set up compiler
run: |
sudo apt-get update
if [ "${{ matrix.compiler.name }}" == "gnu" ]; then
sudo apt-get install -y g++-${{ matrix.compiler.version }}
elif [ "${{ matrix.compiler.name }}" == "clang" ]; then
sudo apt-get install -y clang-${{ matrix.compiler.version }}
fi
- name: make check
run: make check
run: make check
env:
CXX: ${{ matrix.compiler.name }}-${{ matrix.compiler.version }}

0 comments on commit c4bfd20

Please sign in to comment.