-
Notifications
You must be signed in to change notification settings - Fork 51
85 lines (83 loc) · 3.15 KB
/
test.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
name: CI
on:
push:
pull_request:
workflow_dispatch:
repository_dispatch:
schedule:
- cron: '0 0 1 * *'
jobs:
build:
name: build test
runs-on: ubuntu-latest
steps:
- name: checkout repository
uses: actions/checkout@v3
- name: checkout submodules
run: git submodule update --init --remote --recursive
- name: install dependencies
run: |
sudo apt-get -y -qq update
sudo apt-get -y -qq install cmake ninja-build
- name: install arm-none-eabi-gcc
run: |
wget -q https://developer.arm.com/-/media/Files/downloads/gnu/11.3.rel1/binrel/arm-gnu-toolchain-11.3.rel1-x86_64-arm-none-eabi.tar.xz
tar -xf arm-gnu-toolchain-11.3.rel1-x86_64-arm-none-eabi.tar.xz
echo "${{github.workspace}}/arm-gnu-toolchain-11.3.rel1-x86_64-arm-none-eabi/bin" >> $GITHUB_PATH
- name: check arm-none-eabi-gcc version
run: arm-none-eabi-gcc -v
- name: make test
run: |
cmake -S. -Bbuild -GNinja
cmake --build build -v
example:
name: example test
runs-on: ubuntu-latest
steps:
- name: checkout repository
uses: actions/checkout@v3
- name: checkout submodules
run: git submodule update --init --remote --recursive
- name: install arm-none-eabi-gcc
run: |
wget -q https://developer.arm.com/-/media/Files/downloads/gnu/11.3.rel1/binrel/arm-gnu-toolchain-11.3.rel1-x86_64-arm-none-eabi.tar.xz
tar -xf arm-gnu-toolchain-11.3.rel1-x86_64-arm-none-eabi.tar.xz
echo "${{github.workspace}}/arm-gnu-toolchain-11.3.rel1-x86_64-arm-none-eabi/bin" >> $GITHUB_PATH
- name: check arm-none-eabi-gcc version
run: arm-none-eabi-gcc -v
- name: make test
run: bash ./.example-test.sh
stdcxx:
name: stdc++ test
runs-on: ubuntu-latest
steps:
- name: checkout repository
uses: actions/checkout@v3
- name: checkout submodules
run: git submodule update --init --remote --recursive
- name: install arm-none-eabi-gcc
run: |
wget -q https://developer.arm.com/-/media/Files/downloads/gnu/11.3.rel1/binrel/arm-gnu-toolchain-11.3.rel1-x86_64-arm-none-eabi.tar.xz
tar -xf arm-gnu-toolchain-11.3.rel1-x86_64-arm-none-eabi.tar.xz
echo "${{github.workspace}}/arm-gnu-toolchain-11.3.rel1-x86_64-arm-none-eabi/bin" >> $GITHUB_PATH
- name: check arm-none-eabi-gcc version
run: arm-none-eabi-gcc -v
- name: make test
run: bash ./.stdc++-test.sh
unit:
name: unit test
runs-on: ubuntu-latest
steps:
- name: checkout repository
uses: actions/checkout@v3
- name: checkout submodules
run: git submodule update --init --remote --recursive
- name: install arm-none-eabi-gcc
run: |
wget -q https://developer.arm.com/-/media/Files/downloads/gnu/11.3.rel1/binrel/arm-gnu-toolchain-11.3.rel1-x86_64-arm-none-eabi.tar.xz
tar -xf arm-gnu-toolchain-11.3.rel1-x86_64-arm-none-eabi.tar.xz
echo "${{github.workspace}}/arm-gnu-toolchain-11.3.rel1-x86_64-arm-none-eabi/bin" >> $GITHUB_PATH
- name: check arm-none-eabi-gcc version
run: arm-none-eabi-gcc -v
- name: make test
run: make all -f .unit-test.make