fix: 修复添加数据库备份数据库名称未正确填充 #504
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
goarch: [ amd64, arm64 ] | |
fail-fast: true | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
cache: true | |
go-version: 'stable' | |
- name: Install dependencies | |
run: go mod tidy | |
- name: Build ${{ matrix.goarch }} | |
env: | |
CGO_ENABLED: 0 | |
GOOS: linux | |
GOARCH: ${{ matrix.goarch }} | |
run: go build -ldflags '-s -w --extldflags "-static"' -o panel-${{ matrix.goarch }} | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: panel-${{ matrix.goarch }} | |
path: panel-${{ matrix.goarch }} |