feat: armhf/arm64 & including insert-user
All credit goes to @ahdinosaur for this work. Follows https://github.com/ssbc/go-ssb-room/pull/291.
This commit is contained in:
parent
3fcd61e1ca
commit
2833558d94
|
@ -9,7 +9,8 @@ before:
|
||||||
- go generate ./...
|
- go generate ./...
|
||||||
|
|
||||||
builds:
|
builds:
|
||||||
- env:
|
- id: go-ssb-room-linux-amd64
|
||||||
|
env:
|
||||||
# needed for sqlite
|
# needed for sqlite
|
||||||
- CGO_ENABLED=1
|
- CGO_ENABLED=1
|
||||||
main: ./cmd/server
|
main: ./cmd/server
|
||||||
|
@ -19,11 +20,82 @@ builds:
|
||||||
goarch:
|
goarch:
|
||||||
- amd64
|
- amd64
|
||||||
|
|
||||||
|
- id: go-ssb-room-insert-user-linux-amd64
|
||||||
|
env:
|
||||||
|
# needed for sqlite
|
||||||
|
- CGO_ENABLED=1
|
||||||
|
main: ./cmd/insert-user
|
||||||
|
binary: go-ssb-room-insert-user
|
||||||
|
goos:
|
||||||
|
- linux
|
||||||
|
goarch:
|
||||||
|
- amd64
|
||||||
|
|
||||||
|
- id: go-ssb-room-linux-arm64
|
||||||
|
env:
|
||||||
|
# needed for sqlite
|
||||||
|
- CGO_ENABLED=1
|
||||||
|
# cross-compilation
|
||||||
|
- CC=aarch64-linux-gnu-gcc
|
||||||
|
- CXX=aarch64-linux-gnu-g++
|
||||||
|
main: ./cmd/server
|
||||||
|
binary: go-ssb-room
|
||||||
|
goos:
|
||||||
|
- linux
|
||||||
|
goarch:
|
||||||
|
- arm64
|
||||||
|
|
||||||
|
- id: go-ssb-room-insert-user-linux-arm64
|
||||||
|
env:
|
||||||
|
# needed for sqlite
|
||||||
|
- CGO_ENABLED=1
|
||||||
|
# cross-compilation
|
||||||
|
- CC=aarch64-linux-gnu-gcc
|
||||||
|
- CXX=aarch64-linux-gnu-g++
|
||||||
|
main: ./cmd/insert-user
|
||||||
|
binary: go-ssb-room-insert-user
|
||||||
|
goos:
|
||||||
|
- linux
|
||||||
|
goarch:
|
||||||
|
- arm64
|
||||||
|
|
||||||
|
- id: go-ssb-room-linux-armhf
|
||||||
|
env:
|
||||||
|
# needed for sqlite
|
||||||
|
- CGO_ENABLED=1
|
||||||
|
# cross-compilation
|
||||||
|
- CC=arm-linux-gnueabihf-gcc
|
||||||
|
- CXX=arm-linux-gnueabihf--g++
|
||||||
|
main: ./cmd/server
|
||||||
|
binary: go-ssb-room
|
||||||
|
goos:
|
||||||
|
- linux
|
||||||
|
goarch:
|
||||||
|
- arm
|
||||||
|
goarm:
|
||||||
|
- 6
|
||||||
|
- 7
|
||||||
|
|
||||||
|
- id: go-ssb-room-insert-user-linux-armhf
|
||||||
|
env:
|
||||||
|
# needed for sqlite
|
||||||
|
- CGO_ENABLED=1
|
||||||
|
# cross-compilation
|
||||||
|
- CC=arm-linux-gnueabihf-gcc
|
||||||
|
- CXX=arm-linux-gnueabihf--g++
|
||||||
|
main: ./cmd/insert-user
|
||||||
|
binary: go-ssb-room-insert-user
|
||||||
|
goos:
|
||||||
|
- linux
|
||||||
|
goarch:
|
||||||
|
- arm
|
||||||
|
goarm:
|
||||||
|
- 6
|
||||||
|
- 7
|
||||||
|
|
||||||
gomod:
|
gomod:
|
||||||
# sum.golang.org somehow doesn't handle replace as expected. TODO: file issue
|
|
||||||
proxy: false
|
|
||||||
env:
|
env:
|
||||||
- GOPROXY=https://proxy.golang.org,direct
|
- GOPROXY=https://proxy.golang.org
|
||||||
- GOSUMDB=sum.golang.org
|
- GOSUMDB=sum.golang.org
|
||||||
|
|
||||||
# for .deb packages
|
# for .deb packages
|
||||||
|
@ -31,9 +103,6 @@ gomod:
|
||||||
nfpms:
|
nfpms:
|
||||||
- id: go-ssb-room
|
- id: go-ssb-room
|
||||||
package_name: go-ssb-room
|
package_name: go-ssb-room
|
||||||
replacements:
|
|
||||||
linux: Linux
|
|
||||||
amd64: x86_64
|
|
||||||
vendor: Secure-Scuttlebutt Community
|
vendor: Secure-Scuttlebutt Community
|
||||||
maintainer: Go-SSB-Room NGI-Pointer Team <go-ssb-room@ssb-ngi-pointer.email>
|
maintainer: Go-SSB-Room NGI-Pointer Team <go-ssb-room@ssb-ngi-pointer.email>
|
||||||
homepage: https://scuttlebutt.nz
|
homepage: https://scuttlebutt.nz
|
||||||
|
@ -44,9 +113,10 @@ nfpms:
|
||||||
suggests:
|
suggests:
|
||||||
- ngingx
|
- ngingx
|
||||||
- certbot
|
- certbot
|
||||||
empty_folders:
|
|
||||||
- /var/log/go-ssb-room
|
|
||||||
contents:
|
contents:
|
||||||
|
- dst: /var/log/go-ssb-room
|
||||||
|
type: dir
|
||||||
|
|
||||||
- src: docs/files/example-systemd.service
|
- src: docs/files/example-systemd.service
|
||||||
dst: /etc/systemd/system/go-ssb-room.service
|
dst: /etc/systemd/system/go-ssb-room.service
|
||||||
type: "config|noreplace"
|
type: "config|noreplace"
|
||||||
|
@ -64,9 +134,7 @@ nfpms:
|
||||||
preremove: docs/files/debian-preremove.sh
|
preremove: docs/files/debian-preremove.sh
|
||||||
|
|
||||||
archives:
|
archives:
|
||||||
- replacements:
|
- id: go-ssb-room
|
||||||
linux: Linux
|
|
||||||
amd64: x86_64
|
|
||||||
|
|
||||||
checksum:
|
checksum:
|
||||||
name_template: 'checksums.txt'
|
name_template: 'checksums.txt'
|
||||||
|
|
|
@ -17,7 +17,7 @@ We currently only distributed pre-packaged releases for Debian-compatible distri
|
||||||
See [Issue #79](https://github.com/ssbc/go-ssb-room/issues/79) for the details.
|
See [Issue #79](https://github.com/ssbc/go-ssb-room/issues/79) for the details.
|
||||||
If this doesn't work for you, read the "Creating a build" section below.
|
If this doesn't work for you, read the "Creating a build" section below.
|
||||||
|
|
||||||
After running `sudo dpkg -i go-ssb-room_v1.2.3_Linux_x86_64.deb` pay special attention to the
|
After running `sudo dpkg -i go-ssb-room_v1.2.3_linux_amd64.deb` pay special attention to the
|
||||||
[postinstall notes](./files/debian-postinstall.sh) for how to configure the systemd file and webserver.
|
[postinstall notes](./files/debian-postinstall.sh) for how to configure the systemd file and webserver.
|
||||||
|
|
||||||
## Creating a build
|
## Creating a build
|
||||||
|
|
Loading…
Reference in New Issue