File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2222 with :
2323 python-version : " 3.10"
2424
25+ - name : Install Rust Toolchain
26+ uses : dtolnay/rust-toolchain@nightly
27+
2528 - name : Cache pip dependencies
2629 uses : actions/cache@v3
2730 with :
4952
5053 - name : Install dependencies
5154 run : |
55+ echo "uname=$(uname)"
5256 make setuppc
5357
5458 - name : Run pre-commits
Original file line number Diff line number Diff line change @@ -6,20 +6,25 @@ setuppc:
66 python3 -m pip install pre-commit
77 pre-commit install
88
9+
910ifeq ($(shell uname) ,Darwin)
1011 @echo "Setting up shfmt (macOS)..."
1112 brew install shfmt
1213
1314 @echo "Setting up shellcheck (macOS)..."
1415 brew install shellcheck
1516else
17+ ifeq ($(shell uname) ,x86_64)
1618 @echo "Setting up shfmt (Linux)..."
17- wget -qO shfmt "https://github.com/mvdan/sh/releases/download/${SHFMT_VERSION}/shfmt_${SHFMT_VERSION}_$(shell uname -m)"
19+ SHFMT_BIN="shfmt_${SHFMT_VERSION}_linux_amd64"
20+ wget -qO shfmt "https://github.com/mvdan/sh/releases/download/${SHFMT_VERSION}/${SHFMT_BIN}"
1821 chmod +x shfmt
19- sudo mv shfmt /usr/local/bin/
20-
22+ sudo mv shfmt /usr/local/bin/shfmt
2123 @echo "Setting up shellcheck (Linux)..."
2224 sudo apt-get install shellcheck || sudo yum install shellcheck || sudo dnf install shellcheck
25+ else
26+ @echo "Architecture not supported! Update this Makefile!"
27+ exit 1
2328endif
2429
2530.PHONY : reqtxt
You can’t perform that action at this time.
0 commit comments