Compare commits

..

No commits in common. "9a4e7dcccad013a1baa37ee71fa0cf375acafcd3" and "4a5ed41c1217385daf813fc000b47030006d1171" have entirely different histories.

4 changed files with 13 additions and 10 deletions

View File

@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: 检出代码 - name: 检出代码
uses: actions/checkout@v4 uses: actions/checkout@v3
with: with:
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}

View File

@ -7,15 +7,15 @@ jobs:
test: test:
strategy: strategy:
matrix: matrix:
go: ['stable'] go: ['1.22.x']
os: [ubuntu-latest] os: [ubuntu-latest]
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v2
- name: Setup Go - name: Setup Go
uses: actions/setup-go@v5 uses: actions/setup-go@v2
with: with:
go-version: ${{ matrix.go }} go-version: ${{ matrix.go }}

View File

@ -15,10 +15,10 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v4 uses: actions/checkout@v3
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v5 uses: actions/setup-go@v3
with: with:
go-version: 'stable' go-version: 'stable'
@ -44,10 +44,10 @@ jobs:
needs: build needs: build
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v4 uses: actions/checkout@v3
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v5 uses: actions/setup-go@v3
with: with:
go-version: 'stable' go-version: 'stable'
@ -55,7 +55,7 @@ jobs:
run: | run: |
mkdir -p bin mkdir -p bin
cd cmd cd cmd
CGO_ENABLED=0 GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} GOARM=${{ matrix.goarm }} go build \ CGO_ENABLED=0 GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build \
-o ../bin/backtrace-${{ matrix.goos }}-${{ matrix.goarch }} \ -o ../bin/backtrace-${{ matrix.goos }}-${{ matrix.goarch }} \
-v \ -v \
-ldflags="-extldflags=-static -s -w" \ -ldflags="-extldflags=-static -s -w" \
@ -89,6 +89,9 @@ jobs:
goarch: amd64 goarch: amd64
- goos: windows - goos: windows
goarch: arm64 goarch: arm64
- goos: windows
goarch: arm
goarm: 7
- goos: darwin - goos: darwin
goarch: arm64 goarch: arm64
- goos: linux - goos: linux

View File

@ -75,7 +75,7 @@ rm -rf /usr/bin/backtrace
## 在Golang中使用 ## 在Golang中使用
``` ```
go get github.com/oneclickvirt/backtrace@v0.0.8-20260501031244 go get github.com/oneclickvirt/backtrace@v0.0.8-20251109090457
``` ```
## 概览图 ## 概览图