File 2441-Add-OpenBSD-FreeBSD-Solaris-VMs-to-workflow.patch of Package erlang
From ce2fd6aec014b2bd8fab1baf1b556c5e5cb6af00 Mon Sep 17 00:00:00 2001
From: Konrad Pietrzak <konrad@erlang.org>
Date: Thu, 26 Jun 2025 12:35:17 +0200
Subject: [PATCH] Add OpenBSD/FreeBSD/Solaris VMs to workflow
---
.github/workflows/main.yaml | 53 ++++++++++++++++++++++++++++++++++++-
1 file changed, 52 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml
index 91e3079938..c67b98a4b2 100644
--- a/.github/workflows/main.yaml
+++ b/.github/workflows/main.yaml
@@ -503,7 +503,58 @@ jobs:
export ERTS_SKIP_DEPEND=true
./configure
gmake
-
+ openbsd:
+ name: Build Erlang/OTP (OpenBSD)
+ runs-on: ubuntu-latest
+ needs: pack
+ if: needs.pack.outputs.build-c-code == 'true'
+ steps:
+ - name: Download source archive
+ uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # ratchet:actions/download-artifact@v4.3.0
+ with:
+ name: otp_prebuilt
+ - name: Build on OpenBSD
+ uses: vmactions/openbsd-vm@0d65352eee1508bab7cb12d130536d3a556be487 # v1.1.8
+ with:
+ usesh: true
+ copyback: false
+ prepare: |
+ pkg_add -I 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
+ solaris:
+ name: Build Erlang/OTP (Solaris)
+ runs-on: ubuntu-latest
+ needs: pack
+ if: needs.pack.outputs.build-c-code == 'true'
+ steps:
+ - name: Download source archive
+ uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # ratchet:actions/download-artifact@v4.3.0
+ with:
+ name: otp_prebuilt
+ - name: Build on Solaris
+ uses: vmactions/solaris-vm@170f1f96f376cf7467cc41627e0c7590932fccaa # v1.1.4
+ with:
+ usesh: true
+ copyback: false
+ prepare: |
+ pkg refresh --full && pkg install --accept bash developer/build/gnu-make archiver/gnu-tar autoconf ncurses developer/build/pkg-config developer/gcc
+ 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
--
2.43.0