From 75f2f7644a3b59642fc6bf8b7b1dcce15b936310 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Sat, 20 Jan 2024 23:20:24 +0900 Subject: [PATCH] bsd trial --- .github/scripts/install-deps.solaris.sh | 1 + .github/workflows/main.yml | 31 ++++++++++++++++--------- 2 files changed, 21 insertions(+), 11 deletions(-) create mode 100644 .github/scripts/install-deps.solaris.sh diff --git a/.github/scripts/install-deps.solaris.sh b/.github/scripts/install-deps.solaris.sh new file mode 100644 index 0000000..1d7f571 --- /dev/null +++ b/.github/scripts/install-deps.solaris.sh @@ -0,0 +1 @@ +echo "No Idea" diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ee24329..84c7878 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -116,15 +116,15 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - bsd_build_job: + vm_build_job: runs-on: ubuntu-latest - name: Build on ${{ matrix.arch }}-${{ matrix.bsd }} + name: Build on ${{ matrix.arch }}-${{ matrix.os }} strategy: fail-fast: false matrix: arch: [ i386, amd64 ] - bsd: [ freebsd, netbsd ] + os: [ freebsd, netbsd, solaris ] ci_build: [ true ] release_build: - ${{ startsWith(github.ref, 'refs/tags/') }} @@ -136,37 +136,46 @@ jobs: path: 'repo' - name: build freebsd uses: vmactions/freebsd-vm@v1 - if: matrix.bsd == 'freebsd' + 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.bsd }} + sh .github/scripts/build-tl.sh ${{ matrix.arch }}-${{ matrix.os }} - name: build netbsd uses: vmactions/netbsd-vm@v1 - if: matrix.bsd == 'netbsd' + 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.bsd }} + sh .github/scripts/build-tl.sh ${{ matrix.arch }}-${{ matrix.os }} + - name: build solaris + uses: vmactions/solaris-vm@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.bsd }}.tar.gz + 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@v4 with: - name: texlive-bin-${{ matrix.arch }}-${{ matrix.bsd }}.tar.gz - path: ${{ github.workspace }}/repo/texlive-bin-${{ matrix.arch }}-${{ matrix.bsd }}.tar.gz + 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@v1 if: matrix.release_build with: - files: $GITHUB_WORKSPACE/repo/texlive-bin-${{ matrix.arch }}-${{ matrix.bsd }}.tar.gz + files: $GITHUB_WORKSPACE/repo/texlive-bin-${{ matrix.arch }}-${{ matrix.os }}.tar.gz env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}