From 4e1ebdedb5d6370098ee7a44f39354b2b5e7589c Mon Sep 17 00:00:00 2001 From: simon Date: Sat, 22 Mar 2025 15:50:07 +0100 Subject: [PATCH] Added build workflow --- .gitea/workflows/build.yaml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 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..b9f3337 --- /dev/null +++ b/.gitea/workflows/build.yaml @@ -0,0 +1,33 @@ +name: Build and Test Golang + +on: + push: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + + container: + image: golang:1.22 # Aktuelle Version verwenden + options: --network host + + steps: + # Schritt 1: Repository klonen + - name: Checkout Code + uses: actions/checkout@v4 + + # Schritt 2: Abhängigkeiten installieren + - name: Install Dependencies + run: go mod tidy + + # Schritt 3: Code bauen + - name: Build Application + run: go build . + + - name: Upload Build Artifacts + uses: actions/upload-artifact@v4 + with: + name: serialToWebsocket + path: .