File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -11,14 +11,28 @@ jobs:
11
11
runs-on : ubuntu-latest
12
12
container : mbedos/mbed-os-env:stable
13
13
14
+ env :
15
+ # The list of projects to run on. This should just run for each dir that includes a mbed_app.json
16
+ PROJECTS : bms fakedir
17
+
14
18
steps :
15
19
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
16
20
- uses : actions/checkout@v2
17
21
18
22
# Install dependencies for all projects
19
23
- name : Install dependencies
20
- run : find . -maxdepth 2 -name 'mbed_app.json' -exec sh -c "cd $(dirname '{}') && mbed update" \;
24
+ run : |
25
+ for PROJECT in $PROJECTS; do
26
+ pushd $PROJECT
27
+ mbed deploy
28
+ popd
29
+ done
21
30
22
31
# Compile all projects
23
32
- name : Compile
24
- run : find . -maxdepth 2 -name 'mbed_app.json' -exec sh -c "cd $(dirname '{}') && mbed update" \;
33
+ run : |
34
+ for PROJECT in $PROJECTS; do
35
+ pushd $PROJECT
36
+ mbed compile
37
+ popd
38
+ done
You can’t perform that action at this time.
0 commit comments