feat: 在面板定时任务出错时将面板设置为错误状态 #561
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: '1.22' | |
- 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 }} |