Skip to content

Commit

Permalink
Make build-and-test-on-freebsd fail if steps to not complete successf…
Browse files Browse the repository at this point in the history
…ully

This workflow is a different from most in that the entire build and test is done in a single script
in a FreeBSB QEMU constainer on an Ubuntu host. Because it is one large shell script, with no
separate "jobs", exits needed to be added to ensure the test fails if any important steps fail to
complete successfully.

Adds missing rebar3 installation required to complete the tests build.

Signed-off-by: Winford <winford@object.stream>
  • Loading branch information
UncleGrumpy committed Jan 19, 2025
1 parent 8e4efd6 commit 7a6ec8a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/build-and-test-on-freebsd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
pkg install -y curl cmake gperf erlang elixir mbedtls
run: |
set -e
echo "%%"
echo "%% System Info"
echo "%%"
Expand All @@ -73,6 +73,14 @@ jobs:
echo "**hw.ncpu:**"
sysctl -n hw.ncpu
echo "%%"
echo "%% Installing rebar3 ..."
echo "%%"
curl -s -o rebar3 https://github.com/erlang/rebar3/releases/download/3.24.0/rebar3
chmod +x rebar3
./rebar3 local install
export PATH="${PATH}:${HOME}/.cache/rebar3/bin"
echo "%%"
echo "%% Running CMake ..."
echo "%%"
Expand Down

0 comments on commit 7a6ec8a

Please sign in to comment.