-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (53 loc) · 1.7 KB
/
Copy pathbuild_test.yml
File metadata and controls
55 lines (53 loc) · 1.7 KB
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
name: Build and Test
on:
pull_request:
branches: [ main ]
jobs:
build-project:
name: Build Project
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: print toolchain version
run: arm-none-eabi-gcc --version
- name: build project
uses: docker://stronglytyped/arm-none-eabi-gcc:latest
run: make build
- name: upload build files
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
with:
name: BuildFiles
retention-days: 1
path: |
nucleo-f446re/ButtonLed/build/ButtonLed.elf
nucleo-f446re/ButtonLed/build/ButtonLed.hex
run-tests:
name: Run Robot tests
needs: build-project
runs-on: ubuntu-latest
container:
image: antmicro/renode:latest
options: --user root
timeout-minutes: 5
steps:
- name: checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: print renode version
run: renode --version
- name: download build files
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
with:
name: BuildFiles
path: nucleo-f446re/ButtonLed/build
- name: run tests
run: make test
- name: upload results
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
with:
name: TestResults
retention-days: 1
path: |
log.html
report.html