Skip to content

Close file descriptors of created files #94

Close file descriptors of created files

Close file descriptors of created files #94

Workflow file for this run

---
name: tests
"on":
push:
branches: [main]
pull_request:
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-20.04
- ubuntu-24.04
- macos-12
- macos-14
- windows-2019
- windows-2022
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Configure CMake
run: cmake -B build
- name: Build tests
run: cmake --build build
- name: Run tests
run: ctest --output-on-failure --test-dir build
test-modules:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-24.04
- windows-2022
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Configure CMake (LLVM Clang)
if: ${{ matrix.os == 'ubuntu-24.04' }}
run: |
sudo apt install ninja-build
cmake -B build \
-DTMP_USE_MODULES:BOOL=ON \
-DCMAKE_CXX_COMPILER=clang++-17 \
-G Ninja
- name: Configure CMake (MSVC)
if: ${{ matrix.os == 'windows-2022' }}
run: cmake -B build -DTMP_USE_MODULES:BOOL=ON
- name: Build tests
run: cmake --build build
- name: Run tests
run: ctest --output-on-failure --test-dir build