|
|
@ -27,22 +27,31 @@ jobs:
|
|
|
|
env:
|
|
|
|
env:
|
|
|
|
GOOS: linux
|
|
|
|
GOOS: linux
|
|
|
|
GOARCH: amd64
|
|
|
|
GOARCH: amd64
|
|
|
|
|
|
|
|
CGO_ENABLED: 1
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
|
|
|
|
apt-get update && apt-get install -y file
|
|
|
|
|
|
|
|
|
|
|
|
cd $PROJECT_PATH
|
|
|
|
cd $PROJECT_PATH
|
|
|
|
go build -ldflags "-X main.goos=linux -X main.goarch=amd64" -o scrutiny-web-linux-amd64 -tags "static" webapp/backend/cmd/scrutiny/scrutiny.go
|
|
|
|
echo "###### Build Web ######"
|
|
|
|
go build -ldflags "-X main.goos=linux -X main.goarch=amd64" -o scrutiny-collector-metrics-linux-amd64 -tags "static" collector/cmd/collector-metrics/collector-metrics.go
|
|
|
|
go build -ldflags "-extldflags=-static -X main.goos=linux -X main.goarch=amd64" -o scrutiny-web-linux-amd64 -tags "static netgo sqlite_omit_load_extension" webapp/backend/cmd/scrutiny/scrutiny.go
|
|
|
|
|
|
|
|
echo "###### Build Collector ######"
|
|
|
|
|
|
|
|
go build -ldflags "-extldflags=-static -X main.goos=linux -X main.goarch=amd64" -o scrutiny-collector-metrics-linux-amd64 -tags "static netgo" collector/cmd/collector-metrics/collector-metrics.go
|
|
|
|
|
|
|
|
|
|
|
|
chmod +x scrutiny-web-linux-amd64
|
|
|
|
chmod +x scrutiny-web-linux-amd64
|
|
|
|
chmod +x scrutiny-collector-metrics-linux-amd64
|
|
|
|
chmod +x scrutiny-collector-metrics-linux-amd64
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
file scrutiny-web-linux-amd64
|
|
|
|
|
|
|
|
ldd scrutiny-web-linux-amd64 || true
|
|
|
|
|
|
|
|
file scrutiny-collector-metrics-linux-amd64
|
|
|
|
|
|
|
|
ldd scrutiny-collector-metrics-linux-amd64 || true
|
|
|
|
- name: Build arm
|
|
|
|
- name: Build arm
|
|
|
|
env:
|
|
|
|
env:
|
|
|
|
GOOS: linux
|
|
|
|
GOOS: linux
|
|
|
|
GOARCH: arm
|
|
|
|
GOARCH: arm
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
cd $PROJECT_PATH
|
|
|
|
cd $PROJECT_PATH
|
|
|
|
go build -ldflags "-X main.goos=linux -X main.goarch=arm" -o scrutiny-web-linux-arm -tags "static" webapp/backend/cmd/scrutiny/scrutiny.go
|
|
|
|
go build -ldflags "-extldflags=-static -X main.goos=linux -X main.goarch=arm" -o scrutiny-web-linux-arm -tags "static netgo sqlite_omit_load_extension" webapp/backend/cmd/scrutiny/scrutiny.go
|
|
|
|
go build -ldflags "-X main.goos=linux -X main.goarch=arm" -o scrutiny-collector-metrics-linux-arm -tags "static" collector/cmd/collector-metrics/collector-metrics.go
|
|
|
|
go build -ldflags "-extldflags=-static -X main.goos=linux -X main.goarch=arm" -o scrutiny-collector-metrics-linux-arm -tags "static netgo" collector/cmd/collector-metrics/collector-metrics.go
|
|
|
|
|
|
|
|
|
|
|
|
chmod +x scrutiny-web-linux-arm
|
|
|
|
chmod +x scrutiny-web-linux-arm
|
|
|
|
chmod +x scrutiny-collector-metrics-linux-arm
|
|
|
|
chmod +x scrutiny-collector-metrics-linux-arm
|
|
|
@ -53,8 +62,8 @@ jobs:
|
|
|
|
GOARCH: arm64
|
|
|
|
GOARCH: arm64
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
cd $PROJECT_PATH
|
|
|
|
cd $PROJECT_PATH
|
|
|
|
go build -ldflags "-X main.goos=linux -X main.goarch=arm64" -o scrutiny-web-linux-arm64 -tags "static" webapp/backend/cmd/scrutiny/scrutiny.go
|
|
|
|
go build -ldflags "-extldflags=-static -X main.goos=linux -X main.goarch=arm64" -o scrutiny-web-linux-arm64 -tags "static netgo sqlite_omit_load_extension" webapp/backend/cmd/scrutiny/scrutiny.go
|
|
|
|
go build -ldflags "-X main.goos=linux -X main.goarch=arm64" -o scrutiny-collector-metrics-linux-arm64 -tags "static" collector/cmd/collector-metrics/collector-metrics.go
|
|
|
|
go build -ldflags "-extldflags=-static -X main.goos=linux -X main.goarch=arm64" -o scrutiny-collector-metrics-linux-arm64 -tags "static netgo" collector/cmd/collector-metrics/collector-metrics.go
|
|
|
|
|
|
|
|
|
|
|
|
chmod +x scrutiny-web-linux-arm64
|
|
|
|
chmod +x scrutiny-web-linux-arm64
|
|
|
|
chmod +x scrutiny-collector-metrics-linux-arm64
|
|
|
|
chmod +x scrutiny-collector-metrics-linux-arm64
|
|
|
@ -74,8 +83,8 @@ jobs:
|
|
|
|
GOARCH: amd64
|
|
|
|
GOARCH: amd64
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
cd $PROJECT_PATH
|
|
|
|
cd $PROJECT_PATH
|
|
|
|
go build -ldflags "-X main.goos=freebsd -X main.goarch=amd64" -o scrutiny-web-freebsd-amd64 -tags "static" webapp/backend/cmd/scrutiny/scrutiny.go
|
|
|
|
go build -ldflags "-extldflags=-static -X main.goos=freebsd -X main.goarch=amd64" -o scrutiny-web-freebsd-amd64 -tags "static netgo sqlite_omit_load_extension" webapp/backend/cmd/scrutiny/scrutiny.go
|
|
|
|
go build -ldflags "-X main.goos=freebsd -X main.goarch=amd64" -o scrutiny-collector-metrics-freebsd-amd64 -tags "static" collector/cmd/collector-metrics/collector-metrics.go
|
|
|
|
go build -ldflags "-extldflags=-static -X main.goos=freebsd -X main.goarch=amd64" -o scrutiny-collector-metrics-freebsd-amd64 -tags "static netgo" collector/cmd/collector-metrics/collector-metrics.go
|
|
|
|
|
|
|
|
|
|
|
|
chmod +x scrutiny-web-freebsd-amd64
|
|
|
|
chmod +x scrutiny-web-freebsd-amd64
|
|
|
|
chmod +x scrutiny-collector-metrics-freebsd-amd64
|
|
|
|
chmod +x scrutiny-collector-metrics-freebsd-amd64
|
|
|
|