From 7a6ec8ad78d85bb3fdcdba9dfc412e30852c15d0 Mon Sep 17 00:00:00 2001 From: Winford Date: Sun, 19 Jan 2025 04:09:31 +0000 Subject: [PATCH] Make build-and-test-on-freebsd fail if steps to not complete successfully 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 --- .github/workflows/build-and-test-on-freebsd.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-and-test-on-freebsd.yaml b/.github/workflows/build-and-test-on-freebsd.yaml index adaa6bd2f..2d1637f3e 100644 --- a/.github/workflows/build-and-test-on-freebsd.yaml +++ b/.github/workflows/build-and-test-on-freebsd.yaml @@ -57,7 +57,7 @@ jobs: pkg install -y curl cmake gperf erlang elixir mbedtls run: | - + set -e echo "%%" echo "%% System Info" echo "%%" @@ -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 "%%"