Done, to whoever merges this, good luck. #18
Workflow file for this run
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: 04-go-binary | |
on: [push] | |
jobs: | |
go-binary: | |
runs-on: ubuntu-latest | |
steps: | |
- # Checkout the repository | |
uses: actions/checkout@v4 | |
- # Setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.21' | |
cache-dependency-path: 'go.sum' | |
- # Run the go program | |
run: go run go-program/main.go | |
- # Build a binary for the go program | |
run: CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o hello-world go-program/main.go |