Skip to content

Commit 145859c

Browse files
committed
Set up windows builds for github actions
Rename the original linux only actions file to something less generic.
1 parent eab43f2 commit 145859c

File tree

2 files changed

+35
-3
lines changed

2 files changed

+35
-3
lines changed
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
name: BuildAndTest
1+
name: Linux
22

33
on: #[push, pull_request]
44
push:
55
paths-ignore:
66
- '*.md'
7-
- 'appveyor.yml'
87
- '.gitlab-ci.yml'
9-
- '.travis.yml'
108
- '.circleci/**'
119
- 'docs/**'
1210
- 'data_files/**'

.github/workflows/windows.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Windows
2+
3+
on: #[push, pull_request]
4+
push:
5+
paths-ignore:
6+
- '*.md'
7+
- '.gitlab-ci.yml'
8+
- '.circleci/**'
9+
- 'docs/**'
10+
- 'data_files/**'
11+
- 'images/**'
12+
- 'scripts/**'
13+
14+
jobs:
15+
windows-build:
16+
name: Compilation
17+
runs-on: windows-2022
18+
strategy:
19+
matrix:
20+
type: [Debug, Release]
21+
22+
steps:
23+
- uses: actions/checkout@v4
24+
with:
25+
submodules: true
26+
27+
- name: Configure
28+
run: cmake -Bbuild -DINCH_UNIT_TESTS=ON -DCMAKE_BUILD_TYPE=${{ matrix.type }}
29+
30+
- name: Build
31+
run: cmake --build build --config ${{ matrix.type }} -j2
32+
33+
- name: Test
34+
run: cd build && ctest -C ${{ matrix.type }} -j2 -V

0 commit comments

Comments
 (0)