Skip to content
This repository has been archived by the owner on Dec 17, 2024. It is now read-only.

Commit

Permalink
ci: change build
Browse files Browse the repository at this point in the history
  • Loading branch information
Di Zou committed Jan 14, 2022
1 parent cc5183e commit 3fbd070
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ name: CI
on:
# Triggers the workflow on push or pull request events but only for the master branch
pull_request:
branches: [ main ]
branches: [main]
push:
branches:
- "main"

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand All @@ -25,18 +28,17 @@ jobs:

- uses: actions/setup-go@v2
with:
go-version: "^1.17" # The Go version to download (if necessary) and use.
go-version: "^1.17" # The Go version to download (if necessary) and use.
- run: brew install FiloSottile/musl-cross/musl-cross
- run: brew install mingw-w64

- uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: go-mod-${{ hashFiles('**/go.sum') }}
restore-keys: |
go-mod-
path: ~/go/pkg/mod
key: go-mod-${{ hashFiles('**/go.sum') }}
restore-keys: |
go-mod-
- run: go mod tidy

- run: make mac-test

- run: bash <(curl -s https://codecov.io/bash)
Expand Down

0 comments on commit 3fbd070

Please sign in to comment.