This commit is contained in:
spiritlhl committed 2024-05-01 08:51:07 +00:00
1 parent 2d1f837177
commit 2feded3abc
2 files changed
+15 -15

No files matched your search

+15 -15
View File
@@ -23,7 +23,6 @@ jobs:
- name: Build and Test on Default Platform
run: |
cd ${{ github.workspace }}
go build -v ./...
go test -v ./...
@@ -31,6 +30,21 @@ jobs:
name: Release Go Binary
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 'stable'
- name: Build and Release
run: |
mkdir -p bin
cd cmd
go build -o ../bin/backtrace-${{ matrix.goos }}-${{ matrix.goarch }} -v .
strategy:
matrix:
goos: [windows, freebsd, openbsd, linux, darwin]
@@ -89,17 +103,3 @@ jobs:
- goos: openbsd
goarch: arm
goarm: 7
env:
GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.goarch }}
GOARM: ${{ matrix.goarm }}
GOMIPS: ${{ matrix.gomips }}
CGO_ENABLED: 0
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Release Go Binary
run: |
cd ${{ github.workspace }}
go build -o backtrace-${{ matrix.goos }}-${{ matrix.goarch }} -v ./...