Skip to content

Commit a51539f

Browse files
committed
demos
1 parent 71bb501 commit a51539f

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

.github/workflows/build-examples.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on: ["push", "pull_request"]
1010

1111
jobs:
1212
build_erlang_examples:
13-
name: "Build Erlang Examples"
13+
name: "Build Erlang/Elixir Examples"
1414
runs-on: ubuntu-latest
1515

1616
strategy:

build.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,16 @@ for i in ${ELIXIR_EXAMPLES}; do
3737
mix deps.get && mix atomvm.packbeam || exit 1
3838
cd ..
3939
done
40+
cd ..
41+
cd demos
42+
DEMO_EXAMPLES="$(/bin/ls | grep -v README.md)"
43+
for i in ${DEMO_EXAMPLES}; do
44+
cd $i
45+
rm -rf _build
46+
if [ -f mix.exs ]; then
47+
mix deps.get && mix atomvm.packbeam || exit 1
48+
else
49+
${REBAR} atomvm packbeam -l || exit 1
50+
fi
51+
cd ..
52+
done

0 commit comments

Comments
 (0)