-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (26 loc) · 868 Bytes
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
on: [push, pull_request]
name: Test
jobs:
test:
name: Test
runs-on: ubuntu-latest
env:
LLVM_SYS_180_PREFIX: /usr/lib/llvm-18
steps:
- uses: actions/checkout@v3
- name: add llvm deb repository
uses: myci-actions/add-deb-repo@10
with:
repo: deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-18 main
repo-name: llvm-repo
keys-asc: https://apt.llvm.org/llvm-snapshot.gpg.key
- name: Install LLVM
run: |
sudo apt-get update
sudo apt-get install libllvm-18-ocaml-dev libllvm18 llvm-18 llvm-18-dev llvm-18-doc llvm-18-examples llvm-18-runtime
- 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