|
1 | | -name: Build and Test |
2 | | - |
3 | | -on: |
4 | | - pull_request: |
5 | | - branches: [ main ] |
6 | | - |
7 | | -jobs: |
8 | | - build-project: |
9 | | - name: Build Project |
10 | | - runs-on: ubuntu-latest |
11 | | - container: |
12 | | - image: stronglytyped/arm-none-eabi-gcc:latest |
13 | | - timeout-minutes: 5 |
14 | | - steps: |
15 | | - - name: checkout code |
16 | | - uses: actions/checkout@v3 |
17 | | - - name: print toolchain version |
18 | | - run: arm-none-eabi-gcc --version |
19 | | - - name: build project |
20 | | - run: | |
21 | | - cd nucleo-f446re/ButtonLed |
22 | | - make |
23 | | - - name: upload build files |
24 | | - uses: actions/upload-artifact@v3 |
25 | | - with: |
26 | | - name: BuildFiles |
27 | | - retention-days: 1 |
28 | | - path: | |
29 | | - nucleo-f446re/ButtonLed/build/ButtonLed.elf |
30 | | - nucleo-f446re/ButtonLed/build/ButtonLed.hex |
31 | | - run-tests: |
32 | | - name: Run Robot tests |
33 | | - needs: build-project |
34 | | - runs-on: ubuntu-latest |
35 | | - container: |
36 | | - image: antmicro/renode:latest |
37 | | - options: --user root |
38 | | - timeout-minutes: 5 |
39 | | - steps: |
40 | | - - name: checkout code |
41 | | - uses: actions/checkout@v3 |
42 | | - - name: print renode version |
43 | | - run: renode --version |
44 | | - - name: download build files |
45 | | - uses: actions/download-artifact@v3 |
46 | | - with: |
47 | | - name: BuildFiles |
48 | | - path: nucleo-f446re/ButtonLed/build |
49 | | - - name: run tests |
50 | | - run: renode-test tests/test-button.robot |
51 | | - - name: upload results |
52 | | - uses: actions/upload-artifact@v3 |
53 | | - with: |
54 | | - name: TestResults |
55 | | - retention-days: 1 |
56 | | - path: | |
57 | | - log.html |
58 | | - report.html |
| 1 | +name: Build and Test |
| 2 | + |
| 3 | +on: |
| 4 | + pull_request: |
| 5 | + branches: [ main ] |
| 6 | + |
| 7 | +jobs: |
| 8 | + build-project: |
| 9 | + name: Build Project |
| 10 | + runs-on: ubuntu-latest |
| 11 | + container: |
| 12 | + image: stronglytyped/arm-none-eabi-gcc:latest |
| 13 | + timeout-minutes: 5 |
| 14 | + steps: |
| 15 | + - name: checkout code |
| 16 | + uses: actions/checkout@v3 |
| 17 | + - name: print toolchain version |
| 18 | + run: arm-none-eabi-gcc --version |
| 19 | + - name: build project |
| 20 | + run: make build |
| 21 | + - name: upload build files |
| 22 | + uses: actions/upload-artifact@v3 |
| 23 | + with: |
| 24 | + name: BuildFiles |
| 25 | + retention-days: 1 |
| 26 | + path: | |
| 27 | + nucleo-f446re/ButtonLed/build/ButtonLed.elf |
| 28 | + nucleo-f446re/ButtonLed/build/ButtonLed.hex |
| 29 | + run-tests: |
| 30 | + name: Run Robot tests |
| 31 | + needs: build-project |
| 32 | + runs-on: ubuntu-latest |
| 33 | + container: |
| 34 | + image: antmicro/renode:latest |
| 35 | + options: --user root |
| 36 | + timeout-minutes: 5 |
| 37 | + steps: |
| 38 | + - name: checkout code |
| 39 | + uses: actions/checkout@v3 |
| 40 | + - name: print renode version |
| 41 | + run: renode --version |
| 42 | + - name: download build files |
| 43 | + uses: actions/download-artifact@v3 |
| 44 | + with: |
| 45 | + name: BuildFiles |
| 46 | + path: nucleo-f446re/ButtonLed/build |
| 47 | + - name: run tests |
| 48 | + run: make test |
| 49 | + - name: upload results |
| 50 | + uses: actions/upload-artifact@v3 |
| 51 | + with: |
| 52 | + name: TestResults |
| 53 | + retention-days: 1 |
| 54 | + path: | |
| 55 | + log.html |
| 56 | + report.html |
0 commit comments