-
-
Notifications
You must be signed in to change notification settings - Fork 17
103 lines (88 loc) · 3.07 KB
/
ci.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
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
97
98
99
100
101
102
103
# https://help.github.com/en/actions
# https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions
# https://github.com/actions
# https://github.com/micro-os-plus/micro-os-plus-iii/actions/workflows/ci.yml
name: CI on Push
on:
push:
paths-ignore:
- '.vscode/**'
- 'LICENSE'
- '**.md'
- '.clang-format'
- '.gitignore'
- '.npmignore'
- 'tests/scripts/**'
- '**/README**'
- 'docs/**'
- 'doxygen/**'
- 'inspiration/**'
- 'scripts/**'
- 'templates/**'
# This should disable running the workflow on tags, according to the
# on.<push|pull_request>.<branches|tags> GitHub Actions docs.
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#onpushbranchestagsbranches-ignoretags-ignore
branches:
- '*'
jobs:
ci-test:
name: 'CI µOS++ tests'
runs-on: ${{ matrix.os }}
strategy:
matrix:
# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners
os: [ 'ubuntu-22.04', 'macos-12' ]
# https://nodejs.org/en - use LTS
node-version: [ '18' ]
# https://www.npmjs.com/package/xpm
xpm-version: [ '0.16.2' ]
steps:
- name: Checkout
# https://github.com/actions/checkout/
uses: actions/checkout@v3
with:
fetch-depth: 3
- name: Setup Node.js ${{ matrix.node-version }}
# https://github.com/actions/setup-node/
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install xpm@${{ matrix.xpm-version }}
run: |
npm install -g xpm@${{ matrix.xpm-version }}
- name: Show environment
run: |
id
uname -a
node --version
npm --version
xpm --version
env | sort
- name: Satisfy project dependencies
run: |
xpm run install -C tests
- name: Run test-native-cmake-gcc
run: |
xpm install --config native-cmake-gcc-debug -C tests
xpm install --config native-cmake-gcc-release -C tests
xpm run test-native-cmake-gcc -C tests
- name: Run test-native-cmake-clang
run: |
xpm install --config native-cmake-clang-debug -C tests
xpm install --config native-cmake-clang-release -C tests
xpm run test-native-cmake-clang -C tests
- name: Run test-qemu-cortex-m0-cmake
run: |
xpm install --config qemu-cortex-m0-cmake-debug -C tests
xpm install --config qemu-cortex-m0-cmake-release -C tests
xpm run test-qemu-cortex-m0-cmake -C tests
- name: Run test-qemu-cortex-m3-cmake
run: |
xpm install --config qemu-cortex-m3-cmake-debug -C tests
xpm install --config qemu-cortex-m3-cmake-release -C tests
xpm run test-qemu-cortex-m3-cmake -C tests
- name: Run test-qemu-cortex-m7f-cmake
run: |
xpm install --config qemu-cortex-m7f-cmake-debug -C tests
xpm install --config qemu-cortex-m7f-cmake-release -C tests
xpm run test-qemu-cortex-m7f-cmake -C tests