Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
femnad committed Dec 23, 2023
1 parent 0a3f37f commit fce323f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,12 @@ def build(version: str) -> str:
architecture = sh('uname -m')
asset_name = f'{asset_base}-{version}-{platform}-{architecture}'.lower()
home = os.environ['HOME']
sh(f'go build -o {asset_name}', env={'CGO_ENABLED': '0', 'GOPATH': os.path.join(home, 'go')})
sh(f'go build -o {asset_name}',
env={
'CGO_ENABLED': '0',
'GOPATH': os.path.join(home, 'go'),
'GOCACHE': os.path.join(home, 'go', 'pkg', 'mod')
})
return asset_name


Expand Down

0 comments on commit fce323f

Please sign in to comment.