Skip to content

Commit 2a9e68e

Browse files
committed
action: release freebsd
Signed-off-by: Date Huang <tjjh89017@hotmail.com>
1 parent f2459fb commit 2a9e68e

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,35 @@ jobs:
4242
with:
4343
files: ${{ env.APP }}-${{ matrix.os }}-${{ matrix.arch }}-${{ steps.tag.outputs.TAG }}
4444

45+
release-freebsd:
46+
name: Build FreeBSD
47+
runs-on: ubuntu-latest
48+
strategy:
49+
matrix:
50+
os: [freebsd]
51+
arch: [amd64, arm64]
52+
steps:
53+
- uses: actions/checkout@v4
54+
- name: tag
55+
id: tag
56+
run: echo "TAG=$(git describe --tags --dirty)" >> "$GITHUB_OUTPUT"
57+
- name: Prepare FreeBSD
58+
uses: vmactions/freebsd-vm@v1.2.1
59+
with:
60+
arch: ${{ matrix.arch }}
61+
sync: sshfs
62+
prepare: |
63+
pkg install -y gmake go
64+
- name: Build
65+
shell: freebsd {0}
66+
run: |
67+
cd $GITHUB_WORKSPACE
68+
gmake APP=${{ env.APP }}-${{ matrix.os }}-${{ matrix.arch }}-${{ steps.tag.outputs.TAG }}
69+
- name: Release
70+
uses: softprops/action-gh-release@v2
71+
with:
72+
files: ${{ env.APP }}-${{ matrix.os }}-${{ matrix.arch }}-${{ steps.tag.outputs.TAG }}
73+
4574
docker:
4675
name: Build Docker container
4776
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)