ci: add build steps (#5796)

This commit is contained in:
Sean 2025-05-22 23:44:44 +08:00 committed by GitHub
parent 45f6fc855c
commit 133b252154
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -30,7 +30,6 @@ jobs:
matrix:
go-version: ["1.24.2"]
mount: ["/tmp"]
#os: [ubuntu-latest, macos-latest,windows-latest]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
services:
@ -141,3 +140,24 @@ jobs:
env:
CODECOV_TOKEN: 4f4bc484-32a8-43b7-9f48-20966bd48ceb
run: bash <(curl -s https://codecov.io/bash)
build:
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest, macos-13 ]
go-version: ["1.24.2"]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout codebase
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Build
run: go build -v ./...