From 40a088162f42f698891f5fea0757e3d98e58fc92 Mon Sep 17 00:00:00 2001 From: zervo Date: Thu, 5 Dec 2024 21:40:47 +0100 Subject: [PATCH] Debug CI x7 --- .forgejo/workflows/build.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml index 79169de..15da773 100644 --- a/.forgejo/workflows/build.yml +++ b/.forgejo/workflows/build.yml @@ -2,17 +2,20 @@ on: [push] jobs: build: runs-on: docker - container: - image: golang:latest steps: # Step 1: Check out the code - uses: actions/checkout@v3 - # Step 2: Set the working directory and build the project + # Step 2: Set up go environment + - uses: actions/setup-go@v5 + with: + go-version-file: './Backend/go.mod' + + # Step 3: Set the working directory and build the project - run: go build -x -v -o=stbackend -buildvcs=true ./cmd/stbackend/main.go working-directory: ./Backend - # Step 3: Upload the build artifact + # Step 4: Upload the build artifact - uses: actions/upload-artifact@v3 with: name: build-artifact