-
-
Notifications
You must be signed in to change notification settings - Fork 19
54 lines (52 loc) · 1.61 KB
/
Copy pathc-cpp.yml
File metadata and controls
54 lines (52 loc) · 1.61 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
name: Spin2cpp CI
on:
push:
branches:
- "*"
pull_request:
branches:
- "*"
workflow_dispatch:
inputs:
debug_enabled:
description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)'
required: false
default: false
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Install MinGW
run: "sudo apt-get install gcc-mingw-w64-i686"
- uses: actions/checkout@v2
- name: make
run: make zip
- name: Work around silly artifact uploader
run: unzip flexptools.zip -d flexptools-zip
- run: unzip spin2cpp.zip -d spin2cpp-zip
- uses: actions/upload-artifact@v2.1.3
with:
name: flexptools-git
path: "flexptools-zip/*"
- uses: actions/upload-artifact@v2.1.3
with:
name: spin2cpp-git
path: "spin2cpp-zip/*"
test:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
# Enable tmate debugging of manually-triggered workflows if the input option was provided
- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled }}
- name: Install non-buggy GCC/GCOV
run: "sudo apt-get install gcc-8"
- name: make
run: make all TEST_COVERAGE=1 CC=gcc-8 CCOV=gcov-8
- name: test
run: make test_offline TEST_COVERAGE=1 CC=gcc-8 CCOV=gcov-8
- name: gcov
run: make coverage TEST_COVERAGE=1 CC=gcc-8 CCOV=gcov-8
- name: Upload coverage
run: "bash <(curl -s https://codecov.io/bash) -X gcov"