fix libtinfo5 #5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| env: | |
| CARGO_TERM_COLOR: "always" | |
| LLVM_PATH: "${{ github.workspace }}/llvm" | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Install LLVM Dependencies | |
| run: | | |
| sudo apt update | |
| wget http://security.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.1_amd64.deb | |
| sudo apt install ./libtinfo5_6.3-2ubuntu0.1_amd64.deb | |
| - name: Install LLVM and Clang | |
| uses: KyleMayes/install-llvm-action@v2 | |
| with: | |
| version: "18.1" | |
| directory: "${{ env.LLVM_PATH }}" | |
| - run: ls -la "${{ env.LLVM_PATH }}/bin" | |
| - name: llvm-config | |
| run: llvm-config --version --bindir --libdir | |
| - name: Install rust | |
| run: | | |
| rustup toolchain install stable --profile minimal --no-self-update | |
| - name: Install cargo-llvm-cov | |
| uses: taiki-e/install-action@cargo-llvm-cov | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Test with code coverage | |
| run: | | |
| cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info | |
| env: | |
| LLVM_SYS_181_PREFIX: "${{ env.LLVM_PATH }}" | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| files: lcov.info | |
| fail_ci_if_error: false | |
| clippy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Install LLVM Dependencies | |
| run: | | |
| sudo apt update | |
| wget http://security.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.1_amd64.deb | |
| sudo apt install ./libtinfo5_6.3-2ubuntu0.1_amd64.deb | |
| - name: Install LLVM and Clang | |
| uses: KyleMayes/install-llvm-action@v2 | |
| with: | |
| version: "18.1" | |
| directory: "${{ env.LLVM_PATH }}" | |
| - name: llvm-config | |
| run: llvm-config --version --bindir --libdir | |
| - name: Install rust | |
| run: rustup toolchain install stable --profile minimal --no-self-update | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Run clippy | |
| run: | | |
| cargo clippy --all-features --all-targets --keep-going -- -D warnings | |
| env: | |
| LLVM_SYS_181_PREFIX: "${{ env.LLVM_PATH }}" | |