Skip to content

Commit

Permalink
accelerate dev provisioning
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Pennebaker committed Oct 22, 2024
1 parent bb7ab95 commit df543f4
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- run: "curl -LO https://downloads.snyk.io/cli/stable/snyk-linux"
- run: "sudo cp snyk-linux /bin/snyk"
- run: "sudo chmod a+x /bin/snyk"
- run: "make"
- run: "make -j 4 go"
- run: "mage audit"
env:
SNYK_TOKEN: "${{ secrets.SNYK_TOKEN }}"
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ jobs:
- run: "sudo apt-get install -y cargo curl make"
- run: "curl -LO https://go.dev/dl/go1.23.2.linux-amd64.tar.gz"
- run: "sudo tar -C /usr/local -xzf go1.23.2.linux-amd64.tar.gz"
- run: "make"
- run: "make -j 4"
- run: "mage lint"
2 changes: 1 addition & 1 deletion .github/workflows/test-futureproof-os.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ jobs:
- run: "sudo apt-get install -y cargo curl make"
- run: "curl -LO https://go.dev/dl/go1.23.2.linux-amd64.tar.gz"
- run: "sudo tar -C /usr/local -xzf go1.23.2.linux-amd64.tar.gz"
- run: "make"
- run: "make -j 4 go"
- run: "mage test"
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ jobs:
- run: "sudo apt-get install -y cargo curl make"
- run: "curl -LO https://go.dev/dl/go1.23.2.linux-amd64.tar.gz"
- run: "sudo tar -C /usr/local -xzf go1.23.2.linux-amd64.tar.gz"
- run: "make"
- run: "make -j 4 go"
- run: "mage test"
4 changes: 2 additions & 2 deletions DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
* GNU or BSD [findutils](https://en.wikipedia.org/wiki/Find_(Unix))
* [Go](https://go.dev/) 1.23.2+
* [jq](https://jqlang.github.io/jq/)
* POSIX compatible [make](https://pubs.opengroup.org/onlinepubs/9699919799/utilities/make.html)
* [GNU](https://www.gnu.org/software/make/) / [BSD](https://man.freebsd.org/cgi/man.cgi?make(1)) make
* [Rust](https://www.rust-lang.org/) 1.75.0+
* [Snyk](https://snyk.io/)
* POSIX compatible [tar](https://pubs.opengroup.org/onlinepubs/7908799/xcu/tar.html)
* Provision additional dev tools with `make`
* Provision additional dev tools with `make -j 4`

## Recommended

Expand Down
12 changes: 9 additions & 3 deletions makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
.POSIX:
.SILENT:
.PHONY: all
.PHONY: \
all \
go \
rust

all:
cargo install --force [email protected]
all: go rust

go:
go install github.com/alexkohler/[email protected]
go install github.com/kisielk/[email protected]
go install github.com/magefile/[email protected]
Expand All @@ -16,3 +19,6 @@ all:
go install golang.org/x/vuln/cmd/govulncheck@latest
go install honnef.co/go/tools/cmd/[email protected]
go mod tidy

rust:
cargo install --force [email protected]

0 comments on commit df543f4

Please sign in to comment.