From 8d8adae31047c66824439a8e79b050e8e1f84349 Mon Sep 17 00:00:00 2001 From: Albert Lee Date: Thu, 4 Sep 2025 04:51:44 -0400 Subject: [PATCH] build: package for illumos using vmactions/omnios-vm (#10328) Use GitHub Actions to build illumos/amd64 package. Signed-off-by: Albert Lee Co-authored-by: Jakob Borg --- .github/workflows/build-syncthing.yaml | 35 ++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/.github/workflows/build-syncthing.yaml b/.github/workflows/build-syncthing.yaml index 0ab139faf..42d40ed5e 100644 --- a/.github/workflows/build-syncthing.yaml +++ b/.github/workflows/build-syncthing.yaml @@ -159,6 +159,7 @@ jobs: needs: - build-test - package-linux + - package-illumos - package-cross - package-source - package-debian @@ -337,6 +338,39 @@ jobs: *.tar.gz 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 # signing is part of the build process, so it is limited to release @@ -588,6 +622,7 @@ jobs: needs: - codesign-windows - package-linux + - package-illumos - package-macos - package-cross - package-source