Add a Github Actions config #7
Workflow file for this run
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: Hana CI | |
permissions: | |
contents: read | |
on: pull_request | |
jobs: | |
tests: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- windows-latest | |
- ubuntu-latest | |
- macos-latest | |
compiler: | |
- llvm | |
- gcc | |
steps: | |
- name: Setup build environment | |
uses: aminya/setup-cpp@v1 | |
with: | |
compiler: ${{ matrix.compiler }} | |
vcvarsall: ${{ contains(matrix.os, 'windows') }} | |
cmake: true | |
ninja: true | |
- name: Checkout source code | |
uses: actions/checkout@v3 | |
- name: Configure CMake | |
run: mkdir build && cmake -S . -B build -G Ninja | |
- name: Run the tests | |
run: cmake --build build --target check |