ci: remove binary compression
This commit is contained in:
parent
3f481e9540
commit
6c7065592d
1
.github/workflows/build-test.yml
vendored
1
.github/workflows/build-test.yml
vendored
|
@ -58,7 +58,6 @@ jobs:
|
|||
run: |
|
||||
go build -v -trimpath -ldflags="-s -w -X ${SRC_PATH}/system.Version=dev-${GIT_COMMIT:0:7}" -o build/wings_${GOOS}_${GOARCH} wings.go
|
||||
go build -v -trimpath -ldflags="-X ${SRC_PATH}/system.Version=dev-${GIT_COMMIT:0:7}" -o build/wings_${GOOS}_${GOARCH}_debug wings.go
|
||||
upx build/wings_${GOOS}_${{ matrix.goarch }}
|
||||
chmod +x build/*
|
||||
- name: Tests
|
||||
run: go test -race ./...
|
||||
|
|
4
.github/workflows/release.yml
vendored
4
.github/workflows/release.yml
vendored
|
@ -22,8 +22,8 @@ jobs:
|
|||
run: go test ./...
|
||||
- name: Compress binary and make it executable
|
||||
run: |
|
||||
upx build/wings_linux_amd64 && chmod +x build/wings_linux_amd64
|
||||
upx build/wings_linux_arm64 && chmod +x build/wings_linux_arm64
|
||||
chmod +x build/wings_linux_amd64
|
||||
chmod +x build/wings_linux_arm64
|
||||
- name: Extract changelog
|
||||
env:
|
||||
REF: ${{ github.ref }}
|
||||
|
|
3
Makefile
3
Makefile
|
@ -14,9 +14,6 @@ rmdebug:
|
|||
go build -gcflags "all=-N -l" -ldflags="-X github.com/pterodactyl/wings/system.Version=$(GIT_HEAD)" -race
|
||||
sudo dlv --listen=:2345 --headless=true --api-version=2 --accept-multiclient exec ./wings -- --debug --ignore-certificate-errors --config config.yml
|
||||
|
||||
compress:
|
||||
upx --brute build/wings_*
|
||||
|
||||
cross-build: clean build compress
|
||||
|
||||
clean:
|
||||
|
|
Loading…
Reference in New Issue
Block a user