Skip to content

Build & runs tests on Ubuntu #138

Build & runs tests on Ubuntu

Build & runs tests on Ubuntu #138

Workflow file for this run

# __________________________________ CONTENTS ___________________________________
#
# This is a workflow file for GitHub Actions that runs tests on Ubuntu.
# The workflow is triggered automatically on every push or pull request.
# Run results are then archived as GitHub artifacts.
#
# By default, Ubuntu provides 'g++' which links 'libstdc++' stdlib.
# _______________________________________________________________________________
name: "Run tests: Ubuntu"
run-name: "Build & runs tests on Ubuntu"
on: [ push, pull_request ]
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: "Checkout repository"
uses: actions/checkout@v4
- name: "Configure CMake"
run: cmake --preset gcc
- name: "Build project"
run: cmake --build --preset gcc
- name: "Run tests"
run: ctest --preset gcc
- name: "Upload test artifacts"
uses: actions/upload-artifact@v4
if: always()
with:
name: "artifact-${{matrix.os}}-${{matrix.cxx}}"
path: |
build/
!build/auxiliary/
!build/benchmarks/
!build/examples/
!build/tests/