v0.0.3 - 增加多平台编译测试部分

This commit is contained in:
spiritlhl 2024-06-24 08:18:01 +00:00
parent 29c7c81f9a
commit 9c658fb118
2 changed files with 32 additions and 1 deletions

31
.github/workflows/ci.yaml vendored Normal file
View File

@ -0,0 +1,31 @@
name: CI
on:
workflow_dispatch:
jobs:
test:
strategy:
matrix:
go: [ '1.22.x' ]
os: [ ubuntu-latest ]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
- name: Test
run: go test ./... -coverprofile=coverage.txt
- name: Create Tag
if: success() # 仅在测试成功时运行
run: |
git config --global user.name 'github-actions'
git config --global user.email 'github-actions@github.com'
TAG="v0.0.3-$(date +'%Y%m%d%H%M%S')"
git tag $TAG
git push origin $TAG
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@ -1,4 +1,4 @@
package backtrace
const BackTraceVersion = "0.0.2"
const BackTraceVersion = "v0.0.3" // git tag v0.0.3
var EnableLoger bool