chore: init repo #6
This file contains 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
on: [push, pull_request] | |
name: Test | |
env: | |
LLVM_SYS_180_PREFIX: /opt/llvm-18 | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install LLVM 18 | |
run: | | |
wget https://github.com/llvm/llvm-project/releases/download/llvmorg-18.1.8/clang+llvm-18.1.8-x86_64-linux-gnu-ubuntu-18.04.tar.xz | |
tar -xvf clang+llvm-18.1.8-x86_64-linux-gnu-ubuntu-18.04.tar.xz | |
mv clang+llvm-18.1.8-x86_64-linux-gnu-ubuntu-18.04 /opt/llvm-18 | |
- uses: actions/checkout@v3 | |
- name: Install toolchain | |
run: rustup show | |
- name: Run cargo fmt | |
run: cargo fmt -- --check | |
- name: Run cargo clippy | |
run: cargo clippy --all-features -- -D warnings | |