feat: 将限速的阿里云镜像更换为腾讯云镜像 #286
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@v4 | |
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 -fpic"' -o panel-${{ matrix.goarch }} | |
- name: Upload artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: panel-${{ matrix.goarch }} | |
path: panel-${{ matrix.goarch }} |