|
1 | | -install: |
2 | | - cargo install --locked --path . --force |
3 | | - |
4 | | -install-quick: |
5 | | - cargo install --profile quick --locked --path . --force |
6 | | - |
7 | | -install-slim: |
8 | | - cargo install --no-default-features --features slim --locked --path . --force |
9 | | - |
10 | | -install-slim-quick: |
11 | | - cargo install --profile quick --no-default-features --features slim --locked --path . --force |
12 | | - |
13 | | -install-minimum: |
14 | | - cargo install --no-default-features --locked --path . --force |
15 | | - |
16 | | -install-lto-fat: |
17 | | - cargo install --locked --force --profile release-lto-fat --path . |
18 | | - |
19 | | -install-minimum-quick: |
20 | | - cargo install --profile quick --no-default-features --locked --path . --force |
21 | | - |
22 | | -# Installs Forest binaries with default rust global allocator |
23 | | -install-with-rustalloc: |
24 | | - cargo install --locked --path . --force --no-default-features --features rustalloc |
25 | | - |
26 | | -install-lint-tools: |
27 | | - cargo install --locked taplo-cli |
28 | | - cargo install --locked cargo-deny |
29 | | - cargo install --locked cargo-spellcheck |
30 | | - |
31 | | -# Denotes the architecture of the machine. This is required for direct binary downloads. |
32 | | -# Note that some repositories might use different names for the same architecture. |
33 | | -CPU_ARCH := $(shell \ |
34 | | - ARCH=$$(uname -m); \ |
35 | | - if [ "$$ARCH" = "arm64" ]; then \ |
36 | | - ARCH="aarch64"; \ |
37 | | - fi; \ |
38 | | - echo "$$ARCH" \ |
39 | | -) |
40 | | - |
41 | | -install-cargo-binstall: |
42 | | - wget https://github.com/cargo-bins/cargo-binstall/releases/latest/download/cargo-binstall-$(CPU_ARCH)-unknown-linux-musl.tgz |
43 | | - tar xzf cargo-binstall-$(CPU_ARCH)-unknown-linux-musl.tgz |
44 | | - cp cargo-binstall ~/.cargo/bin/cargo-binstall |
45 | | - |
46 | | -install-lint-tools-ci: install-cargo-binstall |
47 | | - cargo binstall --no-confirm taplo-cli cargo-spellcheck cargo-deny |
48 | | - |
49 | | -clean: |
50 | | - cargo clean |
51 | | - |
52 | | -# Lints with everything we have in our CI arsenal |
53 | | -lint-all: lint deny spellcheck |
54 | | - |
55 | | -deny: |
56 | | - cargo deny check bans licenses sources || (echo "See deny.toml"; false) |
57 | | - |
58 | | -spellcheck: |
59 | | - cargo spellcheck --code 1 || (echo "See .config/spellcheck.md for tips"; false) |
60 | | - |
61 | | -lint: license clean lint-clippy |
62 | | - cargo fmt --all --check |
63 | | - taplo fmt --check |
64 | | - taplo lint |
65 | | - |
66 | | -# Don't bother linting different allocators |
67 | | -# --quiet: don't show build logs |
68 | | -lint-clippy: |
69 | | - cargo clippy --all-targets --quiet --no-deps -- --deny=warnings |
70 | | - cargo clippy --all-targets --no-default-features --features slim --quiet --no-deps -- --deny=warnings |
71 | | - cargo clippy --all-targets --no-default-features --quiet --no-deps -- --deny=warnings |
72 | | - cargo clippy --benches --features benchmark-private --quiet --no-deps -- --deny=warnings |
73 | | - # check docs.rs build |
74 | | - DOCS_RS=1 cargo clippy --all-targets --quiet --no-deps -- --deny=warnings |
75 | | - |
76 | | -DOCKERFILES=$(wildcard Dockerfile*) |
77 | | -lint-docker: $(DOCKERFILES) |
78 | | - docker run --rm -i hadolint/hadolint < $< |
79 | | - |
80 | 1 | lint-go: |
81 | 2 | go run github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.3.1 run ./f3-sidecar ./interop-tests/src/tests/go_app |
82 | 3 |
|
|
0 commit comments