Skip to content

Commit

Permalink
updated the steps to account for windows stuff as well
Browse files Browse the repository at this point in the history
  • Loading branch information
YashdalfTheGray committed Aug 20, 2023
1 parent fe82c08 commit 80ec1da
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/test-and-benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,25 @@ jobs:
run: goveralls -coverprofile=artifacts/c.out -service=github

- name: Get short hash
if: runner.os != 'Windows'
id: vars
run: echo "short_sha=$(git rev-parse --short HEAD)" >> "$GITHUB_OUTPUT"

- name: Upload benchmark artifacts
if: runner.os != 'Windows'
uses: actions/upload-artifact@v3
with:
name: ${{ format('benchmarks-{0}-{1}-{2}.json', steps.vars.outputs.short_sha, runner.os, matrix.go) }}
path: benchmarks.json

- name: Get short hash (windows)
if: runner.os == 'Windows'
id: vars-windows
run: Write-Output "short_sha=$(git rev-parse --short HEAD)" >> $Env:GITHUB_OUTPUT

- name: Upload benchmark artifacts (windows)
if: runner.os == 'Windows'
uses: actions/upload-artifact@v3
with:
name: ${{ format('benchmarks-{0}-{1}-{2}.json', steps.vars-windows.outputs.short_sha, runner.os, matrix.go) }}
path: benchmarks.json

0 comments on commit 80ec1da

Please sign in to comment.