Skip to content

Feature/remove comments #185

Feature/remove comments

Feature/remove comments #185

Workflow file for this run

name: CMake Build Matrix
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, ubuntu-latest]
include:
- os: windows-latest
compiler: msvc
triplet: x64-windows-release
- os: ubuntu-latest
compiler: gcc-linux
triplet: x64-linux
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Install GCC 13.1
if: matrix.os == 'ubuntu-latest'
run: |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
sudo apt-get update
sudo apt-get install -y gcc-13 g++-13
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-13 60
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-13 60
- name: Set up vcpkg
uses: johnwason/vcpkg-action@v6
with:
manifest-dir: ${{ github.workspace }}
triplet: ${{ matrix.triplet }}
token: ${{ github.token }}
github-binarycache: true
- name: Configure CMake
run: |
cmake -B cmake-build-release -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=${{ github.workspace }}/vcpkg/scripts/buildsystems/vcpkg.cmake
- name: Build
run: |
cmake --build cmake-build-release --config Release
- name: List contents of output directory
run: |
echo "Contents of output directory:"
ls -R ${{ github.workspace }}/output/bin/release
- name: Run tests
continue-on-error: true
run: |
cd cmake-build-release
ctest -C Release --output-on-failure