-
Notifications
You must be signed in to change notification settings - Fork 9
58 lines (50 loc) · 1.32 KB
/
push.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
name: arduino-k210 core build and autotest, based on ESP32 Arduino CI
on:
push:
branches:
- 'main'
paths-ignore:
- '.github/workflows/docs.yml'
- 'docs/**'
pull_request:
branches:
- 'main'
paths-ignore:
- '.github/workflows/docs.yml'
- 'docs/**'
concurrency:
group: build-${{github.event.pull_request.number || github.ref}}
cancel-in-progress: true
jobs:
build-arduino:
name: Arduino Build on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
# os: [ubuntu-latest, windows-latest, macOS-latest]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Build Sketches
run: |
bash ./tools/on-push.sh
test-arduino-linux:
if: endsWith(github.ref, 'main')
name: Arduino Test on ubuntu-20.04
runs-on: self-hosted
needs: build-arduino
steps:
- uses: actions/checkout@v3
- name: Build testcases
run: |
bash ./tools/tests_build.sh -c -b canaan_k1 -i 0 -m 1
- name: Run testcases
run: |
bash ./tools/tests_run_simple.sh
- uses: actions/upload-artifact@v3
with:
name: "arduino-test-report-${{ github.sha }}"
path: ${{ github.workspace }}/tests/report/**