Forgejo action to build the binary
All checks were successful
Compile dohproxy / build (push) Successful in 3m12s
All checks were successful
Compile dohproxy / build (push) Successful in 3m12s
This commit is contained in:
parent
4412ca7097
commit
9eed720f6b
1 changed files with 29 additions and 0 deletions
29
.forgejo/workflows/build.yml
Normal file
29
.forgejo/workflows/build.yml
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
name: Compile dohproxy
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- '*'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Set up Go
|
||||||
|
uses: actions/setup-go@v4
|
||||||
|
with:
|
||||||
|
go-version: '1.21' # Replace with your desired Go version
|
||||||
|
|
||||||
|
- name: Compile Go binary
|
||||||
|
run: |
|
||||||
|
go build dohproxy.go
|
||||||
|
|
||||||
|
- name: Upload artifact
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: go-binary
|
||||||
|
path: dohproxy
|
||||||
|
|
Loading…
Reference in a new issue