mirror of
https://github.com/Mrs4s/go-cqhttp.git
synced 2025-05-04 19:17:37 +08:00
缓存依赖,优化CI编译速度,增加手动触发
This commit is contained in:
parent
ad7e53009d
commit
8bfbfc04f3
9
.github/workflows/ci.yml
vendored
9
.github/workflows/ci.yml
vendored
@ -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 }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user