1
0
mirror of https://github.com/Mrs4s/go-cqhttp.git synced 2025-05-05 03:23:49 +08:00

缓存依赖,优化CI编译速度,增加手动触发

This commit is contained in:
yume233 2021-07-03 17:55:46 +08:00
parent ad7e53009d
commit 8bfbfc04f3

View File

@ -1,6 +1,6 @@
name: CI name: CI
on: [push, pull_request] on: [push, pull_request,workflow_dispatch]
env: env:
BINARY_PREFIX: "go-cqhttp_" BINARY_PREFIX: "go-cqhttp_"
@ -31,6 +31,13 @@ jobs:
uses: actions/setup-go@v2.1.3 uses: actions/setup-go@v2.1.3
with: with:
go-version: 1.16 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 - name: Build binary file
env: env:
GOOS: ${{ matrix.goos }} GOOS: ${{ matrix.goos }}