Skip to content

Commit be8c7e9

Browse files
committed
Merge pull request #1478 from UncleGrumpy/test-on-freebsd
Make build-and-test-on-freebsd fail if steps do not complete successfully Updates the Ubuntu host to 24.04, and changes to as matrix build with the current stable (14.2) and latest legacy release update (13.4) versions of FreeBSD. This workflow is a different from most in that the entire build and test is done in a single script in a FreeBSB container 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. Closes #1435 These changes are made under both the "Apache 2.0" and the "GNU Lesser General Public License 2.1 or later" license terms (dual license). SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later
2 parents c8388d6 + 29e3c9b commit be8c7e9

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.github/workflows/build-and-test-on-freebsd.yaml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,17 @@ concurrency:
3434

3535
jobs:
3636
build-and-test-on-freebsd:
37-
runs-on: ubuntu-22.04
37+
runs-on: ubuntu-24.04
3838
name: Build and test AtomVM on FreeBSD
3939
env:
4040
ATOMVM_EXAMPLE: "atomvm-example"
41+
42+
strategy:
43+
fail-fast: false
44+
45+
matrix:
46+
os_release: ["13.4", "14.2"]
47+
4148
steps:
4249

4350
- uses: actions/checkout@v4
@@ -47,17 +54,17 @@ jobs:
4754
uses: vmactions/freebsd-vm@v1
4855
timeout-minutes: 20
4956
with:
50-
release: 13.2
57+
release: ${{ matrix.os_release }}
5158
envs: 'ATOMVM_EXAMPLE'
5259
usesh: true
5360
sync: rsync
5461
copyback: false
5562

5663
prepare: |
57-
pkg install -y curl cmake gperf erlang elixir mbedtls
64+
pkg install -y curl cmake gperf erlang elixir rebar3 mbedtls
5865
5966
run: |
60-
67+
set -e
6168
echo "%%"
6269
echo "%% System Info"
6370
echo "%%"

0 commit comments

Comments
 (0)