chore: use top-level Makefile #10
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build and Test | |
| on: | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| build-project: | |
| name: Build Project | |
| runs-on: ubuntu-latest | |
| container: | |
| image: stronglytyped/arm-none-eabi-gcc:latest | |
| timeout-minutes: 5 | |
| steps: | |
| - name: checkout code | |
| uses: actions/checkout@v3 | |
| - name: print toolchain version | |
| run: arm-none-eabi-gcc --version | |
| - name: build project | |
| run: make build | |
| - name: upload build files | |
| uses: actions/upload-artifact@v3 | |
| 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@v3 | |
| - name: print renode version | |
| run: renode --version | |
| - name: download build files | |
| uses: actions/download-artifact@v3 | |
| with: | |
| name: BuildFiles | |
| path: nucleo-f446re/ButtonLed/build | |
| - name: run tests | |
| run: make test | |
| - name: upload results | |
| uses: actions/upload-artifact@v3 | |
| with: | |
| name: TestResults | |
| retention-days: 1 | |
| path: | | |
| log.html | |
| report.html |