Closed hazcod closed 2 years ago
Unfortunately not at the moment - the Go version is baked in: https://github.com/bobheadxi/gobenchdata/blob/master/Dockerfile#L1
but this is a valid use case! I will investigate how to best incorporate this into the default action. In the meantime, you can also use the CLI directly to achieve the exact same behaviour as the Action using your specified version of Go, something like:
- name: Setup go
uses: actions/setup-go@v2
with:
go-version: ${{ steps.vars.outputs.go_version }}
- name: Install gobenchdata
run: go get go.bobheadxi.dev/gobenchdata
- name: Run gobenchdata
run: go test -bench | gobenchdata --json "${RUN_OUTPUT}" -v "${GITHUB_SHA}" -t "ref=${GITHUB_REF}"
or similar - see entrypoint.sh for more details, or feel free to ping back here if you have any questions!
unfortunately, the easiest way for me to support this is via --build-arg
, which GitHub Actions does not currently support
Not sure why it's exiting here. Implementing in https://github.com/ironPeakServices/iron-go-project/pull/11/
@bobheadxi : i've made progress with this, but i's complaining about my empty benchmarks.json
file: https://github.com/ironpeakservices/iron-go-project/runs/795465395?check_suite_focus=true#step:7:41
I think this might be possible by migrating to https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#runs-for-composite-run-steps-actions , and leveraging any setup-go
a user has run beforehand
You will soon be able to do this with https://github.com/bobheadxi/gobenchdata#custom-setup :)
Hi,
Is there a way to specify the Go version to use when using
gobenchdata
? e.g.in my case the Go version is pinned down, and I like to see performance changes between Go versions. Thank you!e.g. https://github.com/ironPeakServices/iron-go-project/blob/master/.github/workflows/build.yml#L20