Skip to content

Commit

Permalink
gh: Enable running on freebsd
Browse files Browse the repository at this point in the history
  • Loading branch information
garazdawi committed Feb 25, 2025
1 parent 042f6da commit 3227d70
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,36 @@ jobs:
BASE_BRANCH: ${{ env.BASE_BRANCH }}
TYPE: ${{ matrix.type }}

freebsd:
name: Build Erlang/OTP on FreeBSD
runs-on: ubuntu-latest
needs: pack
if: needs.pack.outputs.c-code-changes
steps:
- name: Download source archive
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # ratchet:actions/[email protected]
with:
name: otp_prebuilt
- name: Test in FreeBSD
uses: vmactions/freebsd-vm@v1
with:
usesh: true
copyback: false
prepare: |
pkg update
pkg upgrade
pkg install -y bash gmake gtar autoconf ncurses pkgconf
run: |
tar -xzf ./otp_src.tar.gz
cd otp
export ERL_TOP=`pwd`
export MAKEFLAGS=-j$(($(nproc) + 2))
export ERLC_USE_SERVER=true
export ERTS_SKIP_DEPEND=true
./configure
gmake
documentation:
name: Build and check documentation
runs-on: ubuntu-latest
Expand Down

0 comments on commit 3227d70

Please sign in to comment.