Skip to content

Commit

Permalink
adding cache
Browse files Browse the repository at this point in the history
  • Loading branch information
jrmncos committed Aug 12, 2024
1 parent 25342eb commit 9127de5
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,26 @@ on:
pull_request:
env:
RUSTFLAGS: "-D warnings"

jobs:
coverage:
runs-on: ${{ matrix.platform }}
name: "${{ matrix.example }} - ${{ matrix.platform }}"
strategy:
matrix:
platform: [ubuntu-latest]
platform: [macos-latest]
toolchain: [stable]
steps:
- uses: actions/checkout@v3
- name: Install LLVM
- name: Install Homebrew
run: |
sudo apt-get update
sudo apt-get install -y llvm clang
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- name: Install LLVM
run: brew install llvm
- name: Add LLVM to PATH
run: echo "/opt/homebrew/opt/llvm/bin" >> $GITHUB_PATH
- name: Install cargo-llvm-cov
run: cargo install cargo-llvm-cov
run: brew install cargo-llvm-cov
- name: Llvm version
run: llvm-config --version
- name: Clang version
Expand All @@ -34,6 +38,7 @@ jobs:
target: wasm32-unknown-unknown
- name: Set Default Toolchain
run: rustup override set ${{ matrix.toolchain }}
- uses: Swatinem/rust-cache@v1
- name: Rust version
run: rustc --version --verbose
- name: Add rust-src component
Expand All @@ -48,4 +53,4 @@ jobs:
fail_ci_if_error: true
files: ./llvm-cov-output.lcov
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true
verbose: true

0 comments on commit 9127de5

Please sign in to comment.