chore(build): reorder content of github action #11
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: build-and-test | |
on: [push, pull_request] | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: sudo apt-get install -y g++ | |
- name: Setup cmake | |
uses: jwlawson/[email protected] | |
with: | |
cmake-version: "3.25" | |
- name: Configure CMake | |
run: cmake -B build -S . -DBUILD_TESTING=ON -DBUILD_DOCS=OFF | |
- name: Build | |
run: cmake --build build | |
- name: Install | |
run: cmake --install build | |
- name: Test | |
run: ctest --test-dir build --output-on-failure |