Skip to content

Commit

Permalink
Add simple go code
Browse files Browse the repository at this point in the history
Add extra step to the workflow
  • Loading branch information
lystopad committed Jul 31, 2024
1 parent 5a0c32c commit 68966e2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/testing-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ on:
dry_run:
required: true
type: boolean
description: 'When dry_run is set then no artifacts are published and only a draft of the release notes created'
description: 'dry_run: when dry_run is set then no artifacts are published and only a draft of the release notes created'

jobs:
build:
Expand All @@ -45,4 +45,8 @@ jobs:
- name: Debug
run: |
echo The value of dry_run is ${{ inputs.dry_run}} and the value of the release_version is ${{ inputs.release_version }}
- name: Build binary
run: |
#docker run --platform ${{ matrix.arch }} --rm -e GOOS=${{ matrix.goos }} -e GOARCH=${{ matrix.goarch }} -e CC=${{ matrix.flags_cc }} -e CXX=${{ matrix.flags_cxx }} -w /erigon -v $(pwd):/erigon -v $(pwd)/${{ matrix.build_dst }}:/erigon/build/bin golang:${{ env.GOLANG_BUILDER_VERSION }} make
docker run --rm -e GOOS=linux -e GOARCH=amd64 -w /app1 -v $(pwd):/app1 golang:bookworm /bin/bash -c "ls -l; cd src; go build main.go; ls -lao "
5 changes: 5 additions & 0 deletions src/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package main
import "fmt"
func main() {
fmt.Println("hello world - it is a simple test to play with different binaries for different archs")
}

0 comments on commit 68966e2

Please sign in to comment.