[tlbuild] running TL24 pretest on OpenBSD
Mojca Miklavec
mojca.miklavec.lists at gmail.com
Mon Feb 19 10:01:21 CET 2024
On Mon, 19 Feb 2024 at 06:07, Norbert Preining wrote:
>
> diff --git a/Build/source/.github/scripts/build-tl.sh b/Build/source/.github/scripts/build-tl.sh
> index e9bcd5ee3ce..8b39d2c9bf5 100755
> --- a/Build/source/.github/scripts/build-tl.sh
> +++ b/Build/source/.github/scripts/build-tl.sh
> @@ -45,6 +45,9 @@ then
> freebsd)
> env ASSUME_ALWAYS_YES=YES pkg install -y gmake gcc pkgconf libX11 libXt libXaw fontconfig perl5
> ;;
> + openbsd)
> + pkg_add gmake gcc pkgconf libX11 libXt libXaw fontconfig perl5
You can do an additional test with gcc, but as Robert pointed out
already, the default clang should work just fine and is probably
preferred.
You could optionally add something like
pkg_add -uv
syspatch
before(?) installing the packages if you want to make sure that
everything is up to date.
> + ;;
> netbsd)
> pkg_add gmake gcc pkgconf libX11 libXt libXaw fontconfig perl5
> ;;
> diff --git a/Build/source/.github/workflows/main.yml b/Build/source/.github/workflows/main.yml
> index 3472666bcc0..4563d2b7215 100644
> --- a/Build/source/.github/workflows/main.yml
> +++ b/Build/source/.github/workflows/main.yml
> @@ -130,10 +130,12 @@ jobs:
> fail-fast: false
> matrix:
> arch: [ i386, amd64 ]
> - os: [ freebsd, solaris ]
> + os: [ openbsd, freebsd, solaris ]
Depending on whether the idea is for the binaries to end up with TL
(as opposed to just checking that there are no build issues),
you would probably want to have multiple (most likely two) instances
of OpenBSD builds, for example openbsd6.4 and openbsd6.3 (soon
replaced by openbsd6.5).
(I didn't check how adding a version influences the rest of the script.)
Of course it makes sense to first start with one version and get that
one working. There should be no difference in building the other
version (other than more confusing yaml syntax).
> release_build:
> - ${{ startsWith(github.ref, 'refs/tags/') }}
> include:
> + - os: openbsd
> + ci_build: true
> - os: freebsd
> ci_build: true
> - os: solaris
> @@ -144,6 +146,15 @@ jobs:
> uses: actions/checkout at v4
> with:
> path: 'repo'
> + - name: build openbsd
> + uses: vmactions/openbsd-vm at v1
> + if: ${{ matrix.os == 'openbsd' && (matrix.ci_build || matrix.release_build) }}
> + with:
> + release: '7.4'
> + usesh: true
> + run: |
> + cd repo
> + sh .github/scripts/build-tl.sh ${{ matrix.arch }}-${{ matrix.os }} ${{ matrix.os }}
> - name: build freebsd
> uses: vmactions/freebsd-vm at v1
> if: ${{ matrix.os == 'freebsd' && (matrix.ci_build || matrix.release_build) }}
Mojca
More information about the tlbuild
mailing list.