Skip to content

Set up basic build and test CI in GitHub Actions #2 #1

Set up basic build and test CI in GitHub Actions #2

Set up basic build and test CI in GitHub Actions #2 #1

Workflow file for this run

name: ci
env:
CTEST_NO_TESTS_ACTION: error
HOMEBREW_NO_INSTALL_CLEANUP: 1
on:
push:
paths:
- "**.c"
- "**.cpp"
- "**.h"
- "**/CMakeLists.txt"
- "**.cmake"
- ".github/workflows/ci.yml"
jobs:
core:
strategy:
matrix:
os: [ubuntu-latest, debian-latest, macos-latest]
shared: [true, false]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/[email protected]
- name: Configure
uses: threeal/[email protected]
with:
generator: Ninja
c-compiler: clang
cxx-compiler: clang++
- name: Build
run: cmake --build build
- name: Unit Tests
run: build/iggy_cpp_test