Skip to content

Commit c148d16

Browse files
committed
github actions supported
1. code formatting check 2. build test
1 parent 2bc9a9e commit c148d16

File tree

3 files changed

+437
-0
lines changed

3 files changed

+437
-0
lines changed

.github/workflows/code_formatting.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Check code formatting
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- uses: actions/setup-python@v1
11+
- name: Install packages
12+
run: source tools/ci.sh && ci_code_formatting_setup
13+
- name: Run code formatting
14+
run: source tools/ci.sh && ci_code_formatting_run
15+
- name: Check code formatting
16+
run: git diff --exit-code

.github/workflows/ports_m5stack.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: m5stack port
2+
3+
on:
4+
push:
5+
pull_request:
6+
paths:
7+
- '.github/workflows/*.yml'
8+
- 'tools/**'
9+
- 'micropython/py/**'
10+
- 'micropython/extmod/**'
11+
- 'micropython/lib/**'
12+
- 'micropython/drivers/**'
13+
- 'm5stack/**'
14+
15+
jobs:
16+
build_idf44:
17+
runs-on: ubuntu-20.04
18+
steps:
19+
- uses: actions/checkout@v2
20+
with:
21+
submodules: true
22+
- name: Install packages
23+
run: source tools/ci.sh && ci_esp32_idf44_setup
24+
- name: Build
25+
run: source tools/ci.sh && ci_esp32_build

0 commit comments

Comments
 (0)