This commit is contained in:
parent
d74e5f27a6
commit
0401e768bb
1 changed files with 18 additions and 0 deletions
18
.forgejo/workflows/build.yml
Normal file
18
.forgejo/workflows/build.yml
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
on: [push]
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
runs-on: docker
|
||||||
|
steps:
|
||||||
|
- uses: https://code.forgejo.org/actions/checkout@v3
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
- uses: https://code.forgejo.org/actions/setup-go@v4
|
||||||
|
with:
|
||||||
|
go-version-file: "go.mod"
|
||||||
|
- name: Install dependencies
|
||||||
|
run: go mod download
|
||||||
|
- name: Build go
|
||||||
|
run: go build -o serv -v ./...
|
||||||
|
- uses: https://code.forgejo.org/actions/upload-artifact@v4
|
||||||
|
name: serv
|
||||||
|
path: releases/serv
|
Loading…
Reference in a new issue