-
Notifications
You must be signed in to change notification settings - Fork 13
51 lines (49 loc) · 1.72 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
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