Firefly v3 implementation with template support and utilities #50
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Unit Testing | |
on: | |
pull_request: | |
types: [opened, synchronize] | |
jobs: | |
unit_test_gcc: | |
strategy: | |
matrix: | |
version: [12, 13, 14] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: | | |
sudo cp .github/apt-sources/ubuntu.sources /etc/apt/sources.list.d/ | |
sudo cp .github/apt-sources/ubuntu-archive-keyring.gpg /usr/share/keyrings/ubuntu-archive-keyring.gpg | |
sudo apt update | |
sudo apt install build-essential gcc-${{ matrix.version }} g++-${{ matrix.version }} -y | |
- run: | | |
cmake -Bbuild -DCMAKE_C_COMPILER=gcc-${{ matrix.version }} -DCMAKE_CXX_COMPILER=g++-${{ matrix.version }} -DFirefly_ENABLE_TESTS=ON -DFirefly_ENABLE_EXAMPLES=ON | |
cmake --build build | |
- run: ctest --test-dir build/tests --output-on-failure | |
unit_test_llvm: | |
strategy: | |
matrix: | |
version: [16, 17, 18] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: | | |
sudo cp .github/apt-sources/ubuntu.sources /etc/apt/sources.list.d/ | |
sudo cp .github/apt-sources/ubuntu-archive-keyring.gpg /usr/share/keyrings/ubuntu-archive-keyring.gpg | |
sudo apt update | |
sudo apt install build-essential clang-${{ matrix.version }} -y | |
- run: | | |
cmake -Bbuild -DCMAKE_C_COMPILER=clang-${{ matrix.version }} -DCMAKE_CXX_COMPILER=clang++-${{ matrix.version }} -DFirefly_ENABLE_TESTS=ON -DFirefly_ENABLE_EXAMPLES=ON | |
cmake --build build | |
- run: ctest --test-dir build/tests --output-on-failure |