diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a5fc0bd..77b92f6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,6 +1,6 @@ name: CI -on: [push, pull_request] +on: [push, pull_request,workflow_dispatch] env: BINARY_PREFIX: "go-cqhttp_" @@ -31,6 +31,13 @@ jobs: uses: actions/setup-go@v2.1.3 with: go-version: 1.16 + - name: Cache downloaded module + uses: actions/cache@v2 + with: + path: | + ~/.cache/go-build + ~/go/pkg/mod + key: ${{ runner.os }}-go-${{ matrix.goos }}-${{ matrix.goarch }}-${{ hashFiles('**/go.sum') }} - name: Build binary file env: GOOS: ${{ matrix.goos }}