diff options
author | Jakob Borg <jakob@kastelo.net> | 2023-04-28 13:10:10 +0200 |
---|---|---|
committer | Jakob Borg <jakob@kastelo.net> | 2023-04-28 13:22:25 +0200 |
commit | 43e3b12e2906aaee5639d541f2fcfd92e81a943f (patch) | |
tree | 198e1f9848ed2480b4e99bf8c3fbbc99e53c049f | |
parent | aa01ff5d50d8025d46d2d06715d1a7d17d151207 (diff) |
build: Build Debian packages
-rw-r--r-- | .github/workflows/build-syncthing.yaml | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/.github/workflows/build-syncthing.yaml b/.github/workflows/build-syncthing.yaml index 87c2f199b2..09ea7768ee 100644 --- a/.github/workflows/build-syncthing.yaml +++ b/.github/workflows/build-syncthing.yaml @@ -459,3 +459,49 @@ jobs: with: name: packages-signed path: packages/* + # + # Debian + # + + package-debian: + name: Package for Debian + needs: + - build-test + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - uses: actions/setup-go@v3 + with: + go-version: ${{ env.GO_VERSION }} + + - uses: ruby/setup-ruby@v1 + with: + ruby-version: '3.0' + + - name: Install fpm + run: | + gem install fpm + + - uses: actions/cache@v3 + with: + path: | + ~/.cache/go-build + ~/go/pkg/mod + key: ${{ runner.os }}-go-${{ env.GO_VERSION }}-debian-${{ hashFiles('**/go.sum') }} + + - name: Package for Debian + run: | + for goarch in amd64 arm64 arm ; do + go run build.go -goos linux -goarch "$goarch" deb + done + env: + BUILD_USER: debian + + - name: Archive artifacts + uses: actions/upload-artifact@v3 + with: + name: debian-packages + path: "*.deb" |