From cb2fa461741d7c836477a05e1058d90835dd342e Mon Sep 17 00:00:00 2001 From: DCreason Date: Fri, 20 Mar 2026 20:35:08 +0000 Subject: [PATCH] make build config --- .gitea/workflows/build.yaml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .gitea/workflows/build.yaml diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml new file mode 100644 index 0000000..ab32684 --- /dev/null +++ b/.gitea/workflows/build.yaml @@ -0,0 +1,35 @@ +name: Build + +on: + push: + branches: + - main + pull_request: + +jobs: + build: + 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-file: go.mod + + - name: Download dependencies + run: go mod download + + - name: Run tests + run: go test ./... + + - name: Build binary + run: go build -v -o samba-configer . + + - name: Upload binary artifact + uses: actions/upload-artifact@v4 + with: + name: samba-configer + path: samba-configer