fix: Add missing include #9
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: Tests | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
test: | |
name: Build Release & Test | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ ubuntu-24.04 ] | |
fail-fast: false | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Remove conflicting packages | |
run: | | |
sudo apt remove needrestart | |
- name: Install latest GCC | |
run: | | |
sudo add-apt-repository universe -y | |
sudo apt-get update -y | |
sudo apt-get install g++-14 gcc-14 -y | |
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-14 60 --slave /usr/bin/g++ g++ /usr/bin/g++-14 | |
sudo apt-get install gcc-14-multilib g++-14-multilib -y | |
- name: Install cmake | |
run: | | |
sudo apt update -y | |
sudo apt install cmake | |
- name: Set environment variables | |
run: | | |
echo "CC=$(which gcc-14)" >> $GITHUB_ENV | |
echo "CXX=$(which g++-14)" >> $GITHUB_ENV | |
- name: Build Tests | |
run: | | |
mkdir build | |
cd build | |
cmake ../tests -DCMAKE_BUILD_TYPE=Release | |
make | |
- name: Run Tests | |
run: ./build/BaryonyxTests | |
- name: Clean | |
run: make clean |