This commit is contained in:
@@ -1,59 +1,59 @@
|
|||||||
name: Build Process Supervisor
|
name: Build Process Supervisor
|
||||||
|
|
||||||
on: [push]
|
on: [push]
|
||||||
|
|
||||||
env:
|
env:
|
||||||
APP_NAME: processSupervisor
|
APP_NAME: processSupervisor
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v4
|
uses: actions/setup-go@v4
|
||||||
with:
|
with:
|
||||||
go-version: 'stable'
|
go-version: 'stable'
|
||||||
|
|
||||||
- name: Build for Windows amd64
|
- name: Build for Windows amd64
|
||||||
run: |
|
run: |
|
||||||
GOOS=windows GOARCH=amd64 go build -ldflags="-s -w" -trimpath -o bin/${APP_NAME}-windows-amd64.exe ./...
|
GOOS=windows GOARCH=amd64 go build -ldflags="-s -w" -trimpath -o bin/${APP_NAME}-windows-amd64.exe
|
||||||
|
|
||||||
- name: Upload Windows amd64 binary
|
- name: Upload Windows amd64 binary
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: ${{env.APP_NAME}}-windows-amd64.exe
|
name: ${{env.APP_NAME}}-windows-amd64.exe
|
||||||
path: bin/${{env.APP_NAME}}-windows-amd64.exe
|
path: bin/${{env.APP_NAME}}-windows-amd64.exe
|
||||||
|
|
||||||
- name: Build for Linux amd64
|
- name: Build for Linux amd64
|
||||||
run: |
|
run: |
|
||||||
GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -trimpath -o bin/${APP_NAME}-linux-amd64 ./...
|
GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -trimpath -o bin/${APP_NAME}-linux-amd64
|
||||||
|
|
||||||
- name: Upload Linux amd64
|
- name: Upload Linux amd64
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: ${{env.APP_NAME}}-linux-amd64
|
name: ${{env.APP_NAME}}-linux-amd64
|
||||||
path: bin/${{env.APP_NAME}}-linux-amd64
|
path: bin/${{env.APP_NAME}}-linux-amd64
|
||||||
|
|
||||||
- name: Build for Linux arm64
|
- name: Build for Linux arm64
|
||||||
run: |
|
run: |
|
||||||
GOOS=linux GOARCH=arm64 go build -ldflags="-s -w" -trimpath -o bin/${APP_NAME}-linux-arm64 ./...
|
GOOS=linux GOARCH=arm64 go build -ldflags="-s -w" -trimpath -o bin/${APP_NAME}-linux-arm64
|
||||||
|
|
||||||
- name: Upload Linux arm64
|
- name: Upload Linux arm64
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: ${{env.APP_NAME}}-linux-arm64
|
name: ${{env.APP_NAME}}-linux-arm64
|
||||||
path: bin/${{env.APP_NAME}}-linux-arm64
|
path: bin/${{env.APP_NAME}}-linux-arm64
|
||||||
|
|
||||||
- name: Build for Linux armv6 (Raspberry Pi)
|
- name: Build for Linux armv6 (Raspberry Pi)
|
||||||
run: |
|
run: |
|
||||||
GOOS=linux GOARCH=arm GOARM=6 go build -ldflags="-s -w" -trimpath -o bin/${APP_NAME}-linux-armv6 ./...
|
GOOS=linux GOARCH=arm GOARM=6 go build -ldflags="-s -w" -trimpath -o bin/${APP_NAME}-linux-armv6 ./...
|
||||||
|
|
||||||
- name: Upload Linux armv6 (Raspberry Pi)
|
- name: Upload Linux armv6 (Raspberry Pi)
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: ${{env.APP_NAME}}-linux-armv6
|
name: ${{env.APP_NAME}}-linux-armv6
|
||||||
path: bin/${{env.APP_NAME}}-linux-armv6
|
path: bin/${{env.APP_NAME}}-linux-armv6
|
Reference in New Issue
Block a user