texlive[69503] Build/source/.github: [gh actions] fixes for arm, try
commits+preining at tug.org
commits+preining at tug.org
Sat Jan 20 15:40:58 CET 2024
Revision: 69503
https://tug.org/svn/texlive?view=revision&revision=69503
Author: preining
Date: 2024-01-20 15:40:58 +0100 (Sat, 20 Jan 2024)
Log Message:
-----------
[gh actions] fixes for arm, try *bsd/solaris
Modified Paths:
--------------
trunk/Build/source/.github/scripts/build-tl.sh
trunk/Build/source/.github/workflows/main.yml
Added Paths:
-----------
trunk/Build/source/.github/scripts/install-deps.bsd.sh
trunk/Build/source/.github/scripts/install-deps.solaris.sh
Modified: trunk/Build/source/.github/scripts/build-tl.sh
===================================================================
--- trunk/Build/source/.github/scripts/build-tl.sh 2024-01-20 08:14:29 UTC (rev 69502)
+++ trunk/Build/source/.github/scripts/build-tl.sh 2024-01-20 14:40:58 UTC (rev 69503)
@@ -48,6 +48,10 @@
aarch64-linux)
BUILDARGS="--enable-arm-neon=on"
;;
+ *-solaris)
+ export CC="/path/to/gcc-5.5 -m64"
+ export CXX="/path/to/g++-5.5 -m64"
+ ;;
esac
export TL_MAKE_FLAGS
Added: trunk/Build/source/.github/scripts/install-deps.bsd.sh
===================================================================
--- trunk/Build/source/.github/scripts/install-deps.bsd.sh (rev 0)
+++ trunk/Build/source/.github/scripts/install-deps.bsd.sh 2024-01-20 14:40:58 UTC (rev 69503)
@@ -0,0 +1,3 @@
+#!/bin/sh
+#pkg install -y file
+echo "TODO"
Property changes on: trunk/Build/source/.github/scripts/install-deps.bsd.sh
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+LF
\ No newline at end of property
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Added: trunk/Build/source/.github/scripts/install-deps.solaris.sh
===================================================================
--- trunk/Build/source/.github/scripts/install-deps.solaris.sh (rev 0)
+++ trunk/Build/source/.github/scripts/install-deps.solaris.sh 2024-01-20 14:40:58 UTC (rev 69503)
@@ -0,0 +1 @@
+echo "TODO"
Property changes on: trunk/Build/source/.github/scripts/install-deps.solaris.sh
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+LF
\ No newline at end of property
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Modified: trunk/Build/source/.github/workflows/main.yml
===================================================================
--- trunk/Build/source/.github/workflows/main.yml 2024-01-20 08:14:29 UTC (rev 69502)
+++ trunk/Build/source/.github/workflows/main.yml 2024-01-20 14:40:58 UTC (rev 69503)
@@ -46,27 +46,39 @@
strategy:
fail-fast: false
matrix:
+ # we need to list the archs here, otherwise the matrix contains only
+ # one element release_build and that is overwritten by the include statements
+ tl_name: [ i386-linux, x86_64-linux, x86_64-linuxmusl, aarch64-linux, armhf-linux ]
+ release_build:
+ - ${{ startsWith(github.ref, 'refs/tags/') }}
include:
- tl_name: i386-linux
image: i386/ubuntu:xenial
- qemu_arch: 386
platform: 386
+ ci_build: true
+ use_qemu: false
- tl_name: x86_64-linux
image: centos:7
- qemu_arch: amd64
platform: amd64
+ ci_build: true
+ use_qemu: false
- tl_name: x86_64-linuxmusl
image: alpine:3.5
- qemu_arch: amd64
platform: amd64
+ ci_build: true
+ use_qemu: false
- tl_name: aarch64-linux
image: arm64v8/debian:buster
+ platform: aarch64
+ ci_build: false
+ use_qemu: true
qemu_arch: aarch64
- platform: aarch64
- tl_name: armhf-linux
image: arm32v7/debian:buster
+ platform: arm/v7
+ ci_build: false
+ use_qemu: true
qemu_arch: arm
- platform: arm/v7
steps:
- name: checkout-main
@@ -74,15 +86,13 @@
with:
path: 'repo'
- name: Setup QEMU
- if: startsWith(matrix.image, 'arm')
+ if: matrix.use_qemu
uses: docker/setup-qemu-action at v2
with:
platforms: ${{ matrix.qemu_arch }}
- name: build
uses: addnab/docker-run-action at v3
- if: |
- startsWith(github.ref, 'refs/tags/') ||
- (startsWith(matrix.image, 'arm') == false)
+ if: ${{ matrix.ci_build || matrix.release_build }}
with:
image: ${{ matrix.image }}
options: -v ${{ github.workspace }}:/work --platform linux/${{ matrix.platform }}
@@ -96,8 +106,10 @@
esac
.github/scripts/build-tl.sh ${{ matrix.tl_name }}
- name: find file step
+ if: ${{ matrix.ci_build || matrix.release_build }}
run: ls -l $GITHUB_WORKSPACE/repo/texlive-bin-${{ matrix.tl_name }}.tar.gz
- name: save artifact
+ if: ${{ matrix.ci_build || matrix.release_build }}
uses: actions/upload-artifact at v4
with:
name: texlive-bin-${{ matrix.tl_name }}.tar.gz
@@ -105,9 +117,73 @@
compression-level: 0
- name: Release
uses: softprops/action-gh-release at v1
- if: startsWith(github.ref, 'refs/tags/')
+ if: matrix.release_build
with:
files: $GITHUB_WORKSPACE/repo/texlive-bin-${{ matrix.tl_name }}.tar.gz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+
+ vm_build_job:
+ runs-on: ubuntu-latest
+ name: Build on ${{ matrix.arch }}-${{ matrix.os }}
+
+ strategy:
+ fail-fast: false
+ matrix:
+ arch: [ i386, amd64 ]
+ os: [ freebsd, netbsd, solaris ]
+ ci_build: [ true ]
+ release_build:
+ - ${{ startsWith(github.ref, 'refs/tags/') }}
+
+ steps:
+ - name: checkout-main
+ uses: actions/checkout at v4
+ with:
+ path: 'repo'
+ - name: build freebsd
+ uses: vmactions/freebsd-vm at v1
+ if: matrix.os == 'freebsd'
+ with:
+ usesh: true
+ run: |
+ cd repo
+ sh .github/scripts/install-deps.bsd.sh
+ sh .github/scripts/build-tl.sh ${{ matrix.arch }}-${{ matrix.os }}
+ - name: build netbsd
+ uses: vmactions/netbsd-vm at v1
+ if: matrix.os == 'netbsd'
+ with:
+ usesh: true
+ run: |
+ cd repo
+ sh .github/scripts/install-deps.bsd.sh
+ sh .github/scripts/build-tl.sh ${{ matrix.arch }}-${{ matrix.os }}
+ - name: build solaris
+ uses: vmactions/solaris-vm at v1
+ if: matrix.os == 'solaris'
+ with:
+ usesh: true
+ run: |
+ cd repo
+ sh .github/scripts/install-deps.solaris.sh
+ sh .github/scripts/build-tl.sh ${{ matrix.arch }}-${{ matrix.os }}
+ - name: find file step
+ if: ${{ matrix.ci_build || matrix.release_build }}
+ run: ls -l $GITHUB_WORKSPACE/repo/texlive-bin-${{ matrix.arch }}-${{ matrix.os }}.tar.gz
+ - name: save artifact
+ if: ${{ matrix.ci_build || matrix.release_build }}
+ uses: actions/upload-artifact at v4
+ with:
+ name: texlive-bin-${{ matrix.arch }}-${{ matrix.os }}.tar.gz
+ path: ${{ github.workspace }}/repo/texlive-bin-${{ matrix.arch }}-${{ matrix.os }}.tar.gz
+ compression-level: 0
+ - name: Release
+ uses: softprops/action-gh-release at v1
+ if: matrix.release_build
+ with:
+ files: $GITHUB_WORKSPACE/repo/texlive-bin-${{ matrix.arch }}-${{ matrix.os }}.tar.gz
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+
More information about the tex-live-commits
mailing list.