diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 57e50d6..f561913 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -9,6 +9,7 @@ on: - opened - synchronize paths: + - ".github/**" - "crates/**" - "src/**" @@ -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: