Skip to content

Commit

Permalink
Add a Github Actions config
Browse files Browse the repository at this point in the history
  • Loading branch information
ldionne committed Nov 10, 2023
1 parent 38b7917 commit 4873753
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Hana CI

permissions:
contents: read

on: [push, 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

0 comments on commit 4873753

Please sign in to comment.