Last active
February 4, 2021 14:27
-
-
Save markphelps/a5de95fd1e1b4bf22ca9587d8be0cea4 to your computer and use it in GitHub Desktop.
Revisions
-
Mark Phelps revised this gist
Feb 4, 2021 . 1 changed file with 12 additions and 6 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,16 +1,22 @@ # Get values for cache paths to be used in later steps - id: go-cache-paths run: | echo "::set-output name=go-build::$(go env GOCACHE)" echo "::set-output name=go-mod::$(go env GOMODCACHE)" - name: Checkout uses: actions/checkout@v2 # Cache go build cache, used to speedup go test - name: Go Build Cache uses: actions/cache@v2 with: path: ${{ steps.go-cache-paths.outputs.go-build }} key: ${{ runner.os }}-go-build-${{ hashFiles('**/go.sum') }} # Cache go mod cache, used to speedup builds - name: Go Mod Cache uses: actions/cache@v2 with: path: ${{ steps.go-cache-paths.outputs.go-mod }} key: ${{ runner.os }}-go-mod-${{ hashFiles('**/go.sum') }} -
Mark Phelps revised this gist
Feb 4, 2021 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,12 +1,14 @@ - name: Checkout uses: actions/checkout@v2 # Required for speeding up go test - name: Go Build Cache uses: actions/cache@v2 with: path: /github/home/.cache/go-build key: ${{ runner.os }}-go-build-${{ hashFiles('**/go.sum') }} # Required for speeding up your go build - name: Go Modules Cache uses: actions/cache@v2 with: -
Mark Phelps revised this gist
Feb 4, 2021 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,7 @@ - name: Checkout uses: actions/checkout@v2 - name: Go Build Cache uses: actions/cache@v2 with: path: /github/home/.cache/go-build -
Mark Phelps revised this gist
Feb 4, 2021 . 1 changed file with 10 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,9 +1,14 @@ - name: Checkout uses: actions/checkout@v2 - name: Cache Go Build uses: actions/cache@v2 with: path: /github/home/.cache/go-build key: ${{ runner.os }}-go-build-${{ hashFiles('**/go.sum') }} - name: Go Modules Cache uses: actions/cache@v2 with: path: ~/go/pkg/mod key: ${{ runner.os }}-go-mod-${{ hashFiles('**/go.sum') }} -
Mark Phelps created this gist
Nov 1, 2019 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ - name: Checkout uses: actions/checkout@v1 - name: Restore Cache uses: actions/cache@preview id: cache with: path: ~/go/pkg/mod key: ${{ runner.os }}-${{ hashFiles('**/go.sum') }}