Skip to content

Commit

Permalink
CI: Add llvm dependence (#35)
Browse files Browse the repository at this point in the history
With the recent inkwell dependence for the LLVM dialect, we need CI to install LLVM.
  • Loading branch information
vaivaswatha authored Jun 10, 2024
1 parent aeb9a5b commit 96586c4
Showing 1 changed file with 19 additions and 34 deletions.
53 changes: 19 additions & 34 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,45 +11,30 @@ env:

jobs:
build:
name: Build
name: Build and Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- run: RUSTFLAGS="-D warnings" cargo build --workspace --verbose

tests:
name: Run tests
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- run: cargo test --workspace --verbose
- name: Setup LLVM
run: |
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 17
sudo apt-get install libpolly-17-dev
clippy:
name: Clippy
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- run: cargo clippy --workspace -- -D warnings
- name: Build
run: RUSTFLAGS="-D warnings" cargo build --workspace --verbose

format:
name: Code format
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- run: cargo fmt --check
- name: Tests
run: cargo test --workspace --verbose

docs:
name: Documentation
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- run: RUSTDOCFLAGS="-D warnings" cargo doc --workspace
- name: Clippy
run: cargo clippy --workspace -- -D warnings

- name: Format
run: cargo fmt --check

- name: Documentation
run: RUSTDOCFLAGS="-D warnings" cargo doc --workspace

0 comments on commit 96586c4

Please sign in to comment.