Skip to content

Commit

Permalink
Set up windows builds for github actions
Browse files Browse the repository at this point in the history
Rename the original linux only actions file to something less generic.
  • Loading branch information
php1ic committed Feb 8, 2024
1 parent eab43f2 commit 145859c
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
name: BuildAndTest
name: Linux

on: #[push, pull_request]
push:
paths-ignore:
- '*.md'
- 'appveyor.yml'
- '.gitlab-ci.yml'
- '.travis.yml'
- '.circleci/**'
- 'docs/**'
- 'data_files/**'
Expand Down
34 changes: 34 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Windows

on: #[push, pull_request]
push:
paths-ignore:
- '*.md'
- '.gitlab-ci.yml'
- '.circleci/**'
- 'docs/**'
- 'data_files/**'
- 'images/**'
- 'scripts/**'

jobs:
windows-build:
name: Compilation
runs-on: windows-2022
strategy:
matrix:
type: [Debug, Release]

steps:
- uses: actions/checkout@v4
with:
submodules: true

- name: Configure
run: cmake -Bbuild -DINCH_UNIT_TESTS=ON -DCMAKE_BUILD_TYPE=${{ matrix.type }}

- name: Build
run: cmake --build build --config ${{ matrix.type }} -j2

- name: Test
run: cd build && ctest -C ${{ matrix.type }} -j2 -V

0 comments on commit 145859c

Please sign in to comment.