Skip to content

Commit

Permalink
Merge pull request #1478 from UncleGrumpy/test-on-freebsd
Browse files Browse the repository at this point in the history
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
  • Loading branch information
bettio committed Jan 21, 2025
2 parents c8388d6 + 29e3c9b commit be8c7e9
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/build-and-test-on-freebsd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,17 @@ concurrency:

jobs:
build-and-test-on-freebsd:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
name: Build and test AtomVM on FreeBSD
env:
ATOMVM_EXAMPLE: "atomvm-example"

strategy:
fail-fast: false

matrix:
os_release: ["13.4", "14.2"]

steps:

- uses: actions/checkout@v4
Expand All @@ -47,17 +54,17 @@ jobs:
uses: vmactions/freebsd-vm@v1
timeout-minutes: 20
with:
release: 13.2
release: ${{ matrix.os_release }}
envs: 'ATOMVM_EXAMPLE'
usesh: true
sync: rsync
copyback: false

prepare: |
pkg install -y curl cmake gperf erlang elixir mbedtls
pkg install -y curl cmake gperf erlang elixir rebar3 mbedtls
run: |
set -e
echo "%%"
echo "%% System Info"
echo "%%"
Expand Down

0 comments on commit be8c7e9

Please sign in to comment.