patch: 前次提交补充,不要在build.sh中执行编译出的可执行文件,因为可能是为其他平台编译的 #661
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: CI | |
on: | |
push: | |
pull_request: | |
schedule: | |
- cron: '30 16 * * 6' | |
jobs: | |
build: | |
strategy: | |
matrix: | |
go: ['1.18', '1.20'] | |
os: [ubuntu-latest, macos-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: ${{ matrix.go }} | |
- name: Build | |
run: ./script/build.sh | |
- name: Test | |
run: make test | |
- name: Upload coverage to Codecov | |
run: bash <(curl -s https://codecov.io/bash) |