Generate normal and debug artifacts
This commit is contained in:
parent
c3df8d2309
commit
fd7ec2aaac
21
.github/workflows/build-test.yml
vendored
21
.github/workflows/build-test.yml
vendored
|
@ -56,16 +56,21 @@ jobs:
|
||||||
CGO_ENABLED: 0
|
CGO_ENABLED: 0
|
||||||
SRC_PATH: github.com/pterodactyl/wings
|
SRC_PATH: github.com/pterodactyl/wings
|
||||||
run: |
|
run: |
|
||||||
go build -v -trimpath -ldflags="-X ${SRC_PATH}/system.Version=dev-${GIT_COMMIT:0:7}" -o build/wings_${{ matrix.goos }}_${{ matrix.goarch }}_debug wings.go
|
go build -v -trimpath -ldflags="-s -w -X ${SRC_PATH}/system.Version=dev-${GIT_COMMIT:0:7}" -o build/wings_${GOOS}_${GOARCH} wings.go
|
||||||
upx build/wings_${{ matrix.goos }}_${{ matrix.goarch }}_debug
|
go build -v -trimpath -ldflags="-X ${SRC_PATH}/system.Version=dev-${GIT_COMMIT:0:7}" -o build/wings_${GOOS}_${GOARCH}_debug wings.go
|
||||||
chmod +x build/wings_${{ matrix.goos }}_${{ matrix.goarch }}_debug
|
upx build/wings_${GOOS}_${{ matrix.goarch }}
|
||||||
|
chmod +x build/*
|
||||||
- name: Tests
|
- name: Tests
|
||||||
run: go test ./...
|
|
||||||
- name: Tests (Race)
|
|
||||||
run: go test -race ./...
|
run: go test -race ./...
|
||||||
- name: Upload Artifact
|
- name: Upload Release Artifact
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
if: ${{ github.ref == 'refs/heads/develop' || github.event_name == 'pull_request' }}
|
if: ${{ github.ref == 'refs/heads/develop' || github.event_name == 'pull_request' }}
|
||||||
with:
|
with:
|
||||||
name: wings_${{ matrix.goos }}_${{ matrix.goarch }}_debug
|
name: wings_linux_${{ matrix.goarch }}
|
||||||
path: build/wings_${{ matrix.goos }}_${{ matrix.goarch }}_debug
|
path: build/wings_linux_${{ matrix.goarch }}
|
||||||
|
- name: Upload Debug Artifact
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
if: ${{ github.ref == 'refs/heads/develop' || github.event_name == 'pull_request' }}
|
||||||
|
with:
|
||||||
|
name: wings_linux_${{ matrix.goarch }}_debug
|
||||||
|
path: build/wings_linux_${{ matrix.goarch }}_debug
|
||||||
|
|
Loading…
Reference in New Issue
Block a user