ci: add build.yml
This commit is contained in:
parent
a739a16a5e
commit
f5f1b5f96b
1 changed files with 21 additions and 0 deletions
21
.forgejo/workflow/build.yml
Normal file
21
.forgejo/workflow/build.yml
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
name: Build workctl
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
build-and-run:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Check out repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: '1.24'
|
||||
|
||||
- name: Build Go application
|
||||
run: |
|
||||
go mod tidy
|
||||
go build -o workctl .
|
||||
Loading…
Add table
Add a link
Reference in a new issue