Update README.rst #73
This file contains 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: Compile Project | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
setup: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Dummy step | |
run: echo "Setup not needed, because the docker image is built anyway in each job..." | |
check-codestyle-and-static: | |
needs: setup | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v2 | |
- name: Check codestyle | |
uses: ./.github/actions/exec-in-build-image | |
with: | |
cmd: ci/check_codestyle.sh | |
- name: Static code analysis | |
uses: ./.github/actions/exec-in-build-image | |
with: | |
cmd: ci/static_code_analysis.sh | |
build: | |
needs: setup | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v2 | |
- name: Build for esp32 | |
uses: ./.github/actions/exec-in-build-image | |
with: | |
cmd: ci/build_for_esp32.sh | |
- name: Build for PC | |
uses: ./.github/actions/exec-in-build-image | |
with: | |
cmd: ci/build_for_pc.sh |