Skip to content

Commit

Permalink
Install LLVM and Clang
Browse files Browse the repository at this point in the history
  • Loading branch information
sunsided committed Dec 30, 2023
1 parent c1e9363 commit 8c53312
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,16 @@ jobs:
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
components: clippy, rustfmt

- name: cargo fmt --check
run: |
if ! rustfmt --check --edition 2021 $(git ls-files '*.rs'); then
printf "Please run \`rustfmt --edition 2021 \$(git ls-files '*.rs')\` to fix rustfmt errors.\nSee CONTRIBUTING.md for more details.\n" >&2
exit 1
fi
- name: cargo clippy
run: cargo clippy

test:
name: Test ${{ matrix.rust }} on ${{ matrix.os }}
Expand All @@ -51,7 +53,7 @@ jobs:
matrix:
rust:
- stable
- beta
# - beta

os:
- ubuntu-latest
Expand All @@ -60,11 +62,20 @@ jobs:

include:
- rust: stable
- rust: beta
# - rust: beta

runs-on: ${{ matrix.os }}

steps:
- name: Install LLVM and Clang
uses: KyleMayes/install-llvm-action@v1
with:
version: "14.0"
- name: Set LIBCLANG_PATH
run: echo "LIBCLANG_PATH=${{ env.LLVM_PATH }}" >> $env:GITHUB_ENV
- name: Set LLVM_PATH
run: echo "LLVM_PATH=${{ env.LLVM_PATH }}" >> $env:GITHUB_ENV

- name: Checkout
uses: actions/checkout@v4

Expand Down

0 comments on commit 8c53312

Please sign in to comment.