Skip to content

Commit

Permalink
Add dependency installation step to the workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
lum1n0us committed Feb 3, 2025
1 parent 0fb84e6 commit a6250ec
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
- opened
- synchronize
paths:
- ".github/**"
- "crates/**"
- "src/**"

Expand Down Expand Up @@ -38,18 +39,26 @@ jobs:
clippy_check:
runs-on: ubuntu-latest
steps:
- name: install dependencies (source code)
run: |
if [[ -d /usr/lib/llvm-15 ]]; then
echo "LLVM 15 is already installed"
else
wget https://github.com/llvm/llvm-project/releases/download/llvmorg-15.0.6/clang+llvm-15.0.6-x86_64-linux-gnu-ubuntu-18.04.tar.xz
tar xfv ./clang+llvm-15.0.6-x86_64-linux-gnu-ubuntu-18.04.tar.xz
sudo mv ./clang+llvm-15.0.6-x86_64-linux-gnu-ubuntu-18.04 /usr/lib/llvm-15
fi
working-directory: /

- uses: actions/checkout@v4
with:
submodules: true

# The LLVM JIT feature on the Rust SDK is still in development.
# Let's skip it for now.
- name: Run Clippy
run: |
cargo clippy --all-targets --features \
custom-section,dump-call-stack,esp-idf,hw-bound-check,multi-module,name-section
cargo clippy --all-targets --all-features
# all test cases
# all test cases with default features
test:
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit a6250ec

Please sign in to comment.