Update go.yml #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |