Compare commits

..

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

View File

@ -209,14 +209,14 @@ env:
GOARCH: ...
steps:
- run: echo "$GOOS $GOARCH" > env.txt
- run: echo "$GOOS $GOARCH" > /tmp/env
- uses: actions/setup-go@v4
with:
go-version: '1.17'
cache-dependency-path: |
go.sum
env.txt
/tmp/env
- run: go run hello.go
```
@ -266,19 +266,19 @@ build:
with:
path: |
${{ 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:
run: echo "$GOOS $GOARCH"> env.txt
run: echo "$GOOS $GOARCH"> /tmp/env
- name: Set up intermediate built files cache
uses: actions/cache@v3
with:
path: |
${{ 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: |
setup-go-build-${{ env.GOOS }}-${{ env.GOARCH }}-${{ runner.os }}-go
setup-go-build-${{ env.GOOS }}-${{ env.GOARCH }}
```