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 924f90c
Show file tree
Hide file tree
Showing 3 changed files with 194 additions and 141 deletions.
21 changes: 17 additions & 4 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,20 +53,31 @@ jobs:
matrix:
rust:
- stable
- beta
# - beta

os:
- ubuntu-latest
- windows-latest
# - windows-latest
- macOS-latest

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: "11.0"
- name: Print directory contents
run: ls -l "${{ env.LLVM_PATH }}"
- 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
Loading

0 comments on commit 924f90c

Please sign in to comment.