chore: add build workflow
This commit is contained in:
parent
8feb34bbe6
commit
1de28c9a10
2 changed files with 31 additions and 1 deletions
.forgejo/workflows
29
.forgejo/workflows/build.yaml
Normal file
29
.forgejo/workflows/build.yaml
Normal file
|
@ -0,0 +1,29 @@
|
|||
name: Build project
|
||||
|
||||
on:
|
||||
push:
|
||||
pull-request:
|
||||
|
||||
jobs:
|
||||
|
||||
build:
|
||||
|
||||
runs-on: [debian-12]
|
||||
strategy:
|
||||
matrix:
|
||||
go-version: [ '1.21', '1.22' ]
|
||||
|
||||
steps:
|
||||
|
||||
- name: Checkout repo
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Go ${{ matrix.go-version }}
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: ${{ matrix.go-version }}
|
||||
|
||||
- name: Build plugins
|
||||
run: |
|
||||
go mod download
|
||||
./build.sh
|
Loading…
Add table
Add a link
Reference in a new issue