-
-
Notifications
You must be signed in to change notification settings - Fork 9
56 lines (54 loc) · 1.47 KB
/
ci_action.yml
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: CI Action
on:
push:
branches:
- '**'
- '!master'
pull_request:
branches:
- '**'
jobs:
build:
name: Build Job
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
include:
- os: macos-latest
SHELL: bash
SEP: /
LS_CMD: ls -la
- os: ubuntu-latest
SHELL: bash
SEP: /
LS_CMD: ls -la
- os: windows-latest
SHELL: cmd
SEP: \
LS_CMD: dir /a
defaults:
run:
shell: ${{ matrix.SHELL }}
env:
BUILD_DIR: ${{ github.workspace }}${{ matrix.SEP }}build
steps:
- name: Checkout
uses: actions/checkout@v3
- name: List Workspace
run: ${{matrix.LS_CMD}} ${{ github.workspace }}
- name: Compile
run: |
echo "== CMAKE VERSION =="
cmake --version
echo "== CMAKE CONFIGURE =="
cmake -B${{env.BUILD_DIR}} -DCI_TRIGGERED=1
echo "== CMAKE BUILD =="
cmake --build ${{env.BUILD_DIR}} --config Release
- name: List Build
run: ${{matrix.LS_CMD}} ${{env.BUILD_DIR}}
- name: Test
run: |
cd ${{env.BUILD_DIR}}
ctest -C Release -T test --output-on-failure
cd ${{ github.workspace }}