Added build workflow
This commit is contained in:
parent
41671fdff6
commit
4e1ebdedb5
33
.gitea/workflows/build.yaml
Normal file
33
.gitea/workflows/build.yaml
Normal file
@ -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: .
|
||||
Loading…
x
Reference in New Issue
Block a user