build: package for illumos using vmactions/omnios-vm (#10328)
Use GitHub Actions to build illumos/amd64 package. Signed-off-by: Albert Lee <trisk@forkgnu.org> Co-authored-by: Jakob Borg <jakob@kastelo.net>
This commit is contained in:
@@ -159,6 +159,7 @@ jobs:
|
|||||||
needs:
|
needs:
|
||||||
- build-test
|
- build-test
|
||||||
- package-linux
|
- package-linux
|
||||||
|
- package-illumos
|
||||||
- package-cross
|
- package-cross
|
||||||
- package-source
|
- package-source
|
||||||
- package-debian
|
- package-debian
|
||||||
@@ -337,6 +338,39 @@ jobs:
|
|||||||
*.tar.gz
|
*.tar.gz
|
||||||
compat.json
|
compat.json
|
||||||
|
|
||||||
|
package-illumos:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
name: Package for illumos
|
||||||
|
needs:
|
||||||
|
- facts
|
||||||
|
env:
|
||||||
|
VERSION: ${{ needs.facts.outputs.version }}
|
||||||
|
GO_VERSION: ${{ needs.facts.outputs.go-version }}
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Build syncthing in OmniOS VM
|
||||||
|
uses: vmactions/omnios-vm@v1
|
||||||
|
with:
|
||||||
|
envs: "VERSION GO_VERSION CGO_ENABLED"
|
||||||
|
usesh: true
|
||||||
|
prepare: |
|
||||||
|
pkg install developer/gcc14 web/curl archiver/gnu-tar
|
||||||
|
run: |
|
||||||
|
curl -L "https://go.dev/dl/go$GO_VERSION.illumos-amd64.tar.gz" | gtar xzf -
|
||||||
|
export PATH="$GITHUB_WORKSPACE/go/bin:$PATH"
|
||||||
|
go version
|
||||||
|
for tgt in syncthing stdiscosrv strelaysrv ; do
|
||||||
|
go run build.go -tags "${{env.TAGS}}" tar "$tgt"
|
||||||
|
done
|
||||||
|
env:
|
||||||
|
CGO_ENABLED: "1"
|
||||||
|
|
||||||
|
- name: Archive artifacts
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: packages-illumos
|
||||||
|
path: "*.tar.gz"
|
||||||
#
|
#
|
||||||
# macOS. The entire build runs in the release environment because code
|
# macOS. The entire build runs in the release environment because code
|
||||||
# signing is part of the build process, so it is limited to release
|
# signing is part of the build process, so it is limited to release
|
||||||
@@ -588,6 +622,7 @@ jobs:
|
|||||||
needs:
|
needs:
|
||||||
- codesign-windows
|
- codesign-windows
|
||||||
- package-linux
|
- package-linux
|
||||||
|
- package-illumos
|
||||||
- package-macos
|
- package-macos
|
||||||
- package-cross
|
- package-cross
|
||||||
- package-source
|
- package-source
|
||||||
|
|||||||
Reference in New Issue
Block a user