From 9eed720f6b7ca010f8e97e4ae3f3e0544873de1f Mon Sep 17 00:00:00 2001 From: afonso Date: Sun, 1 Sep 2024 15:26:56 +0100 Subject: [PATCH] Forgejo action to build the binary --- .forgejo/workflows/build.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .forgejo/workflows/build.yml diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml new file mode 100644 index 0000000..5eda07f --- /dev/null +++ b/.forgejo/workflows/build.yml @@ -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 +