Skip to content

Set up windows builds for github actions #1

Set up windows builds for github actions

Set up windows builds for github actions #1

Workflow file for this run

name: Linux
on: #[push, pull_request]
push:
paths-ignore:
- '*.md'
- '.gitlab-ci.yml'
- '.circleci/**'
- 'docs/**'
- 'data_files/**'
- 'images/**'
- 'scripts/**'
jobs:
linux-build:
name: Compilation
runs-on: ubuntu-latest
strategy:
matrix:
compiler: [clang++-15, g++]
type: [Debug, Release]
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Install dependencies
run: sudo apt update && sudo apt install -y cmake ninja-build gcc g++ clang-15
- name: Configure
run: cmake -GNinja -H. -B../Build -DINCH_UNIT_TESTS=ON -DCMAKE_CXX_COMPILER=/usr/bin/${{ matrix.compiler }} -DCMAKE_BUILD_TYPE=${{ matrix.type }}
- name: Build
run: cmake --build ../Build
- name: Test
run: cd ../Build && ctest -j2 -V