From 3fbd070521807b07614a45e8724c4d77ae95f001 Mon Sep 17 00:00:00 2001 From: Di Zou Date: Fri, 14 Jan 2022 13:47:09 -0500 Subject: [PATCH] ci: change build --- .github/workflows/ci.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e801d19..1dbbb82 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: @@ -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)