Skip to content

Commit

Permalink
bsd trial
Browse files Browse the repository at this point in the history
  • Loading branch information
norbusan committed Jan 20, 2024
1 parent 5f030d1 commit fd14e46
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/scripts/install-deps.bsd.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
pkg install -y file
45 changes: 45 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,3 +115,48 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}


bsd_build_job:
runs-on: ubuntu-latest
name: Build on ${{ matrix.arch }}-${{ matrix.bsd }}

strategy:
fail-fast: false
matrix:
arch: [ i386, amd64 ]
bsd: [ freebsd, netbsd ]
ci_build: [ true ]
release_build:
- ${{ startsWith(github.ref, 'refs/tags/') }}

steps:
- name: checkout-main
uses: actions/checkout@v4
with:
path: 'repo'
- name: build
uses: vmactions/${{ matrix.bsd }}-vm@v1
with:
usesh: true
run: |
cd /work/repo
github/scripts/install-deps.bsd.sh
.github/scripts/build-tl.sh ${{ matrix.arch }}-${{ matrix.bsd }}
- 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
- 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
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
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit fd14e46

Please sign in to comment.