Merge pull request #71 from spowelljr/fixRelease #135
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
on: | |
pull_request: | |
paths: | |
- "**.go" | |
- "**.yml" | |
push: | |
branches: | |
- master | |
name: Build PR | |
jobs: | |
build: | |
name: Build binaries | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Fetch Git Tags | |
run: | | |
git fetch --prune --unshallow --tags | |
- name: Get SHORT SHA | |
id: shortsha | |
run: | | |
echo "::set-output name=sha8::$(echo ${{github.event.pull_request.head.sha}} | cut -c1-8)" | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.20' | |
- name: Cross Platform Build | |
run: | | |
export PATH=$PATH:$(go env GOPATH)/bin | |
make cross | |
- name: Test | |
run: | | |
export PATH=$PATH:$(go env GOPATH)/bin | |
make test | |
- name: Report url | |
shell: bash | |
run: | | |
echo "*******************************************************" | |
echo "https://gopogh.blob.core.windows.net/gopogh/${{github.event.number}}/${{ steps.shortsha.outputs.sha8 }}/output.html" | |
echo "https://gopogh.blob.core.windows.net/gopogh/${{github.event.number}}/${{ steps.shortsha.outputs.sha8 }}/output.html" | |
echo "*******************************************************" |