Skip to content

make LLVM_PATH manually specified #9

make LLVM_PATH manually specified

make LLVM_PATH manually specified #9

name: "Build and Test"
on: "push"
concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true
jobs:
build-and-test:
runs-on: "ubuntu-latest"
env:
LLVM_PATH: "./llvm"
steps:
- name: "Checkout code"
uses: "actions/checkout@v4"
- name: "Cache build artifacts"
uses: "Swatinem/rust-cache@v2"
with:
cache-directories: "${{ env.LLVM_PATH }}"
- name: "Install LLVM and Clang"
uses: "KyleMayes/install-llvm-action@v2"
with:
version: "17.0"
directory: "${{ env.LLVM_PATH }}"
- name: "Build and test"
run: |
cargo clippy
cargo test
env:
LLVM_SYS_170_PREFIX: "${{ env.LLVM_PATH }}"