Skip to content

Commit

Permalink
Please no changes this time.
Browse files Browse the repository at this point in the history
Signed-off-by: Mriyam Tamuli <mbtamuli@gmail.com>
  • Loading branch information
mbtamuli committed Jan 17, 2024
1 parent 946c934 commit bffded0
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/04-go-binary.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
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
7 changes: 7 additions & 0 deletions go-program/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package main

import "fmt"

func main() {
fmt.Println("Hello, World")
}
3 changes: 3 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module github.com/mbtamuli/github-actions-pocs

go 1.21
Empty file added go.sum
Empty file.

0 comments on commit bffded0

Please sign in to comment.