File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 17
17
- uses : actions/setup-go@v4
18
18
with :
19
19
go-version : ' ^1.21.1'
20
- - run : go build -o proxy-${{runner.os}}-${{runner.arch}}${{matrix .os == 'windows ' && '.exe' || ''}} ./cmd/proxy
20
+ - run : go build -o proxy-${{runner.os}}-${{runner.arch}}${{runner .os == 'Windows ' && '.exe' || ''}} ./cmd/proxy
21
21
- uses : actions/upload-artifact@v3
22
22
with :
23
23
name : build
Original file line number Diff line number Diff line change 1
1
name : Goproxy GitHub Cache
2
2
description : Goproxy using GitHub Actions Cache
3
+ env :
4
+ PROXY_VERSION : ${{github.action_ref}}
3
5
runs :
4
6
using : composite
5
7
steps :
6
- - run : echo TODO
8
+ - run : wget https://github.com/jchadwick-buf/goproxy-github-cache/releases/download/${{env.PROXY_VERSION}}/proxy-${{runner.os}}-${{runner.arch}}${{runner.os == 'Windows' && '.exe' || ''}}
9
+ shell : bash
10
+ - run : proxy-${{runner.os}}-${{runner.arch}}${{runner.os == 'Windows' && '.exe' || ''}} &
11
+ shell : bash
12
+ - run : echo "GOPROXY=http://localhost:8123,direct" >> $GITHUB_ENV
7
13
shell : bash
You can’t perform that action at this time.
0 commit comments