Skip to content

Update go.yml

Update go.yml #3

Workflow file for this run

name: Build Go Program
on:
push:
branches:
- main # Change this to the branch you want to build on push
jobs:
build:
runs-on: ubuntu-latest # Use the latest Ubuntu runner
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: '1.24' # Specify the Go version you want to use
- name: Install dependencies
run: go mod tidy
- name: Build
run: go build -v ./... # Adjust the build command if needed