Skip to content

Commit 8a2ab81

Browse files
committed
CI: Test building Elixir
Signed-off-by: Peter M <petermm@gmail.com>
1 parent adad141 commit 8a2ab81

2 files changed

Lines changed: 30 additions & 22 deletions

File tree

.github/workflows/build-examples.yaml

Lines changed: 21 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -17,25 +17,24 @@ jobs:
1717
fail-fast: true
1818

1919
steps:
20-
21-
- uses: erlef/setup-beam@v1
22-
with:
23-
otp-version: "24"
24-
elixir-version: "1.11"
25-
26-
- name: Checkout repo
27-
uses: actions/checkout@v2
28-
29-
# - name: "APT update"
30-
# run: sudo apt update -y
31-
32-
- name: "Build rebar3"
33-
run: |
34-
cd /tmp
35-
git clone https://github.com/erlang/rebar3.git
36-
cd rebar3
37-
./bootstrap
38-
39-
- name: "Build Erlang Example Programs"
40-
run: |
41-
PATH=/tmp/rebar3:$PATH ./build.sh
20+
- uses: erlef/setup-beam@v1
21+
with:
22+
otp-version: "26"
23+
elixir-version: "1.18"
24+
25+
- name: Checkout repo
26+
uses: actions/checkout@v2
27+
28+
# - name: "APT update"
29+
# run: sudo apt update -y
30+
31+
- name: "Build rebar3"
32+
run: |
33+
cd /tmp
34+
git clone https://github.com/erlang/rebar3.git
35+
cd rebar3
36+
./bootstrap
37+
38+
- name: "Build Erlang Example Programs"
39+
run: |
40+
PATH=/tmp/rebar3:$PATH ./build.sh

build.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,12 @@ for i in ${ERLANG_EXAMPLES}; do
2828
${REBAR} atomvm packbeam -l || exit 1
2929
cd ..
3030
done
31+
cd ..
32+
cd elixir
33+
ELIXIR_EXAMPLES="$(/bin/ls | grep -v README.md)"
34+
for i in ${ELIXIR_EXAMPLES}; do
35+
cd $i
36+
rm -rf _build
37+
mix deps.get && mix atomvm.packbeam || exit 1
38+
cd ..
39+
done

0 commit comments

Comments
 (0)