Skip to content

Commit 33dbbc1

Browse files
committed
clean
1 parent d13fb16 commit 33dbbc1

2 files changed

Lines changed: 12 additions & 3 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ jobs:
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:
@@ -49,6 +52,7 @@ jobs:
4952
5053
- name: Install dependencies
5154
run: |
55+
echo "uname=$(uname)"
5256
make setuppc
5357
5458
- name: Run pre-commits

Makefile

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,25 @@ setuppc:
66
python3 -m pip install pre-commit
77
pre-commit install
88

9+
910
ifeq ($(shell uname),Darwin)
1011
@echo "Setting up shfmt (macOS)..."
1112
brew install shfmt
1213

1314
@echo "Setting up shellcheck (macOS)..."
1415
brew install shellcheck
1516
else
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
2328
endif
2429

2530
.PHONY: reqtxt

0 commit comments

Comments
 (0)