From 4bcaacdeee2b074a70a0ea54a4c33a69466634b8 Mon Sep 17 00:00:00 2001 From: Andrew Pennebaker Date: Tue, 22 Oct 2024 01:25:07 -0500 Subject: [PATCH] accelerate dev provisioning --- .github/workflows/audit.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/test-futureproof-os.yml | 2 +- .github/workflows/test.yml | 2 +- DEVELOPMENT.md | 4 ++-- makefile | 17 ++++++++++++----- 6 files changed, 18 insertions(+), 11 deletions(-) diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml index 0c112ab..62309de 100644 --- a/.github/workflows/audit.yml +++ b/.github/workflows/audit.yml @@ -12,5 +12,5 @@ jobs: - uses: "actions/checkout@v4" - run: "sudo apt-get update" - run: "sudo apt-get install -y cargo make" - - run: "make" + - run: "make -j 4 crates" - run: "tinyrick audit" diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 97a4056..8448359 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -10,5 +10,5 @@ jobs: - uses: "actions/checkout@v4" - run: "sudo apt-get update" - run: "sudo apt-get install -y cargo make" - - run: "make" + - run: "make -j 4" - run: "tinyrick lint" diff --git a/.github/workflows/test-futureproof-os.yml b/.github/workflows/test-futureproof-os.yml index c5be5d5..3c2fb57 100644 --- a/.github/workflows/test-futureproof-os.yml +++ b/.github/workflows/test-futureproof-os.yml @@ -17,5 +17,5 @@ jobs: - uses: "actions/checkout@v4" - run: "sudo apt-get update" - run: "sudo apt-get install -y cargo make" - - run: "make" + - run: "make -j 4 crates" - run: "tinyrick test" diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c4390ed..4da7646 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,5 +10,5 @@ jobs: - uses: "actions/checkout@v4" - run: "sudo apt-get update" - run: "sudo apt-get install -y cargo make" - - run: "make" + - run: "make -j 4 crates" - run: "tinyrick test" diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md index 9e36dc5..d2ceb13 100644 --- a/DEVELOPMENT.md +++ b/DEVELOPMENT.md @@ -1,11 +1,11 @@ # BUILDTIME REQUIREMENTS * [Docker](https://www.docker.com/) 20.10.12+ -* 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 * [rustup](https://rustup.rs/) 1.25.2+ * [Rust](https://www.rust-lang.org/en-US/) 1.75.0+ * 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 diff --git a/makefile b/makefile index d34df54..543548b 100644 --- a/makefile +++ b/makefile @@ -1,13 +1,20 @@ .POSIX: .SILENT: -.PHONY: all +.PHONY: \ + all \ + crates \ + rustup-components -all: - rustup component add \ - clippy \ - rustfmt +all: crates rustup-components + +crates: cargo install --force \ cargo-audit \ cross@0.2.5 \ tinyrick@0.0.14 \ unmake@0.0.16 + +rustup-components: + rustup component add \ + clippy \ + rustfmt