Skip to content

Commit f769f89

Browse files
committed
Add basic github actions ci
1 parent 3821382 commit f769f89

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/main.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
container: mbedos/mbed-os-env:stable
12+
13+
steps:
14+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
15+
- uses: actions/checkout@v2
16+
17+
# Install dependencies for all projects
18+
- name: Install dependencies
19+
run: find . -maxdepth 2 -name 'mbed_app.json' -exec sh -c "cd $(dirname '{}') && mbed update" \;
20+
21+
# Compile all projects
22+
- name: Compile
23+
run: find . -maxdepth 2 -name 'mbed_app.json' -exec sh -c "cd $(dirname '{}') && mbed update" \;

0 commit comments

Comments
 (0)