Skip to content

Commit 748d1d9

Browse files
authored
Update ci.yml
1 parent 11fa192 commit 748d1d9

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

.github/workflows/ci.yml

+9-8
Original file line numberDiff line numberDiff line change
@@ -45,17 +45,13 @@ jobs:
4545
runs-on: ${{ matrix.os }}
4646
steps:
4747
- uses: actions/checkout@v4
48-
- name: Set env
48+
- run: mkdir D:\gotmp
4949
if: runner.os == 'Windows'
50-
run: |
51-
echo "TITLE=foo" >> $GITHUB_ENV
5250
- uses: actions/setup-go@v5
5351
if: runner.os != 'Windows'
5452
with:
5553
go-version-file: go.mod
5654
cache: true
57-
- run: mkdir D:\gotmp
58-
if: runner.os == 'Windows'
5955
- uses: actions/setup-go@v5
6056
if: runner.os == 'Windows'
6157
env:
@@ -65,11 +61,16 @@ jobs:
6561
with:
6662
go-version-file: go.mod
6763
cache: true
68-
- name: echo env
69-
if: runner.os == 'Windows'
70-
run: echo "$TITLE"
7164
- env:
7265
CGO_ENABLED: "0"
66+
if: runner.os != 'Windows'
67+
run: go test -v ./...
68+
- env:
69+
CGO_ENABLED: "0"
70+
GOCACHE: "D:\\gocache"
71+
GOMODCACHE: "D:\\gomodcache"
72+
GOTMPDIR: "D:\\gotmp"
73+
if: runner.os == 'Windows'
7374
run: go test -v ./...
7475

7576
system-test:

0 commit comments

Comments
 (0)