-
-
Notifications
You must be signed in to change notification settings - Fork 91
73 lines (69 loc) · 1.86 KB
/
test-cpp.yml
File metadata and controls
73 lines (69 loc) · 1.86 KB
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: test-cpp
permissions: {}
on:
push:
branches:
- main
- renovate/**
paths:
- cpp/**
- testdata/**
- .github/**
pull_request:
branches:
- main
paths:
- cpp/**
- testdata/**
- .github/**
jobs:
test-cpp:
strategy:
matrix:
config:
- os: ubuntu-latest
cc: gcc
- os: ubuntu-latest
cc: clang
- os: macos-latest
cc: clang
- os: windows-latest
cc: cl
runs-on: ${{ matrix.config.os }}
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1.13.0
- name: install dependencies
working-directory: cpp
run: |
cmake -P cmake/cmate --cc=${{ matrix.config.cc }} install
- name: configure and build
working-directory: cpp
run: |
cmake -P cmake/cmate --cc=${{ matrix.config.cc }} build --release
test-cpp-acceptance:
strategy:
matrix:
config:
- os: ubuntu-latest
cc: gcc
- os: ubuntu-latest
cc: clang
- os: macos-latest
cc: clang
# Doesn't work on windows. See: https://github.com/cucumber/gherkin/issues/412
# If fixed, please merge test-cpp and test-cpp-acceptance
# - os: windows-latest
# cc: cl
runs-on: ${{ matrix.config.os }}
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1.13.0
- name: run acceptance tests
working-directory: cpp
run: |
make acceptance