Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
spiritLHLS committed May 1, 2024
1 parent 2d1f837 commit 2feded3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,28 @@ jobs:

- name: Build and Test on Default Platform
run: |
cd ${{ github.workspace }}
go build -v ./...
go test -v ./...
release-binary:
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]
Expand Down Expand Up @@ -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 ./...
File renamed without changes.

0 comments on commit 2feded3

Please sign in to comment.