ci: use gitea actions instead of drone #40

Merged
张泊明518370910136 merged 40 commits from actions into master 2024-09-20 08:03:01 +08:00
Showing only changes of commit 075e92fe49 - Show all commits

View File

@ -27,25 +27,6 @@ jobs:
go env -w GO111MODULE=on
go env -w GOPROXY=https://goproxy.io,direct
chown -R root:root /root/.ssh
- name: Get go-hashfiles
uses: https://gitea.com/actions/go-hashfiles@v0.0.1
id: hash-go
with:
patterns: |-
go.mod
go.sum
- name: Echo hash
run: echo ${{ steps.hash-go.outputs.hash }}
- name: Cache go
id: cache-go
uses: https://gitea.com/actions/cache@v3
with:
path: |-
/root/go/pkg/mod
/root/.cache/go-build
key: go_cache-${{ steps.hash-go.outputs.hash }}
restore-keys: |-
go_cache-${{ steps.hash-go.outputs.hash }}
- name: Build
run: make build
- name: Test