aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/ci.yml
blob: 7851bd66755e57903d24f9a71e0a03cefcee719c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: ci
on: [push, pull_request]

jobs:
  unix:
    name: "${{ matrix.os }}"
    runs-on: "${{ matrix.os }}"
    strategy:
      matrix:
        os: [ubuntu-latest, macOS-latest]

    steps:
    - uses: actions/checkout@v1
    - name: configure
      run: cmake .
    - name: make
      run: make
    - name: test
      run: ctest -V
    - name: install
      run: sudo make install

  windows:
    name: "${{ matrix.os }}: ${{ matrix.target }}"
    runs-on: "${{ matrix.os }}"
    strategy:
      matrix:
        os: [windows-latest]
        target: ["Visual Studio 16 2019", "MSYS Makefiles"]
    env:
      MTARGET: "${{ matrix.target }}"

    steps:
      - uses: actions/checkout@v1
      - name: configure
        run: cmake -G "${env:MTARGET}" .
        shell: pwsh
      - name: make
        run: cmake --build .
      - name: test
        run: ctest -C Debug -V