Skip to content

Commit

Permalink
cache LLVM before
Browse files Browse the repository at this point in the history
  • Loading branch information
andogq committed Jul 16, 2024
1 parent 72b6faa commit ce125d7
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,23 @@ concurrency:

jobs:
build-and-test:
env:
RUSTFLAGS: "-Dwarnings"
runs-on: "ubuntu-latest"
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"

- name: "Cache build artifacts"
uses: "Swatinem/rust-cache@v2"

- name: "Build and test"
run: |
tree $LLVM_PATH
cargo clippy
cargo test
env:
Expand Down

0 comments on commit ce125d7

Please sign in to comment.