-
Notifications
You must be signed in to change notification settings - Fork 11
97 lines (87 loc) · 2.21 KB
/
ci.yaml
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
#
# This is free and unencumbered software released into the public domain.
# See ../LICENSE.unlicense
#
# This workflow controls Plasma's continious integration. See documentation
# for github workflows:
#
# * https://help.github.com/en/actions/configuring-and-managing-workflows/configuring-and-managing-workflow-files-and-runs
# * https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions
#
# And the action we use is here:
# * https://github.com/PlasmaLang/ci
name: CI
on: [push, pull_request]
jobs:
test:
name: Test (${{ matrix.buildType }} ${{ matrix.c }})
runs-on: ubuntu-latest
strategy:
matrix:
c: [gcc, clang]
buildType: [dev, rel]
fail-fast: false
steps:
- name: checkout
uses: actions/checkout@v4
- name: setup
uses: PlasmaLang/ci/stable@v2_1
with:
command: setup
c: ${{ matrix.c }}
buildType: ${{ matrix.buildType }}
- name: build
uses: PlasmaLang/ci/stable@v2_1
with:
command: build
- name: test
uses: PlasmaLang/ci/stable@v2_1
with:
command: test
- name: gctest
uses: PlasmaLang/ci/stable@v2_1
if: matrix.buildType == 'dev'
with:
command: gctest
- name: copy-results
uses: actions/upload-artifact@v2
if: failure()
with:
name: test-results ${{ matrix.buildType }} ${{ matrix.c }}
path: .
retention-days: 7
docs:
name: Build docs
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: checkout
uses: actions/checkout@v4
- name: docs
uses: PlasmaLang/ci/docs@v1
lint:
name: Lint (${{ matrix.buildType }})
runs-on: ubuntu-latest
strategy:
matrix:
buildType: [dev, rel]
fail-fast: false
steps:
- name: checkout
uses: actions/checkout@v4
- name: setup
uses: PlasmaLang/ci/stable@v2_1
with:
command: setup
c: clang
buildType: ${{ matrix.buildType }}
lint: lint
- name: build
uses: PlasmaLang/ci/stable@v2_1
with:
command: build
- name: extra
uses: PlasmaLang/ci/stable@v2_1
with:
command: extra