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 1c5e01d commit 75f2f76
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 11 deletions.
1 change: 1 addition & 0 deletions .github/scripts/install-deps.solaris.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
echo "No Idea"
31 changes: 20 additions & 11 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/') }}
Expand All @@ -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 }}

0 comments on commit 75f2f76

Please sign in to comment.