Compare commits

..

No commits in common. "ffbd08bb260b2565b9c78e67da042c2cc65decce" and "d8ddd101cc8e0efbdb2fd84b8efa6eac045c6216" have entirely different histories.

View File

@ -209,14 +209,14 @@ env:
GOARCH: ... GOARCH: ...
steps: steps:
- run: echo "$GOOS $GOARCH" > env.txt - run: echo "$GOOS $GOARCH" > /tmp/env
- uses: actions/setup-go@v4 - uses: actions/setup-go@v4
with: with:
go-version: '1.17' go-version: '1.17'
cache-dependency-path: | cache-dependency-path: |
go.sum go.sum
env.txt /tmp/env
- run: go run hello.go - run: go run hello.go
``` ```
@ -266,19 +266,19 @@ build:
with: with:
path: | path: |
${{ env.cache }} ${{ env.cache }}
key: setup-go-deps-${{ runner.os }}-go-${{ hashFiles('go.sum', 'go.mod') }} key: setup-go-deps-${{ runner.os }}-go-${{ hashFiles('go.sum go.mod') }}
- name: - name:
run: echo "$GOOS $GOARCH"> env.txt run: echo "$GOOS $GOARCH"> /tmp/env
- name: Set up intermediate built files cache - name: Set up intermediate built files cache
uses: actions/cache@v3 uses: actions/cache@v3
with: with:
path: | path: |
${{ env.modcache }} ${{ env.modcache }}
key: setup-go-build-${{ env.GOOS }}-${{ env.GOARCH }}-${{ runner.os }}-go-${{ hashFiles('**/*.go', 'env.txt') }} key: setup-go-build-${{ env.GOOS }}-${{ env.GOARCH }}-${{ runner.os }}-go-${{ hashFiles('**/*.go /tmp/env') }}
restore-keys: | restore-keys: |
setup-go-build-${{ env.GOOS }}-${{ env.GOARCH }}-${{ runner.os }}-go setup-go-build-${{ env.GOOS }}-${{ env.GOARCH }}
``` ```