Skip to content

Commit

Permalink
fix(ci): use go install for build deps (#1020)
Browse files Browse the repository at this point in the history
* fix(ci): use go install for build deps

* adjust commands since mousetrap is not binary
  • Loading branch information
noahdietz authored Sep 19, 2022
1 parent 469991b commit f44407b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,14 @@ jobs:
# The API linter does not use these, but we need them to build the
# binaries.
#
# Mousetrap is installed individually because it is needed for the
# Windows build. Since we are building on Linux, it is not installed
# automatically as a dependency.
# gox is a cross-compiler binary and needs to be install with `go install`.
#
# Mousetrap is a build dependency installed individually because it is
# only needed for the Windows build. Since we are building on Linux, it is
# not installed automatically as a dependency.
- name: Install the cross-platform build tool.
run: |
go get github.com/mitchellh/gox
go install github.com/mitchellh/gox@latest
go get github.com/inconshreveable/mousetrap
- name: Set the version number in the binary (for `api-linter --version`).
run: |
Expand Down

0 comments on commit f44407b

Please sign in to comment.