-
Notifications
You must be signed in to change notification settings - Fork 82
44 lines (40 loc) · 1.01 KB
/
compile.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
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