Bump softprops/action-gh-release from 2.0.5 to 2.0.6 #24
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# GitHub Actions workflow to test the project on macOS, Linux, and Windows. | |
# Generated by Bing's Copilot. | |
name: Test (only) | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
mac-test: | |
runs-on: macos-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install Rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
components: rustfmt, clippy | |
- name: Install Ninja | |
run: brew install ninja | |
- name: Run cargo check | |
uses: actions-rs/cargo@v1 | |
with: | |
command: check | |
- name: Install LLVM tools | |
run: brew install llvm | |
- name: Install cargo-llvm-cov | |
run: cargo install cargo-llvm-cov | |
- name: Run tests with coverage | |
run: cargo llvm-cov --workspace --lcov --output-path ./target/lcov.info | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v4.0.1 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
linux-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install Rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
components: rustfmt, clippy | |
- name: Install Ninja | |
run: sudo apt-get install ninja-build | |
- name: Run cargo check | |
uses: actions-rs/cargo@v1 | |
with: | |
command: check | |
- name: Install LLVM tools | |
run: sudo apt-get install llvm | |
- name: Install cargo-llvm-cov | |
run: cargo install cargo-llvm-cov | |
- name: Install CUDA | |
run: sudo apt-get install nvidia-cuda-toolkit nvidia-cudnn nvidia-cuda-dev | |
- name: Run tests with coverage | |
run: cargo llvm-cov --workspace --lcov --output-path ./target/lcov.info | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v4.0.1 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
# Windows is expected to fail for the moment | |
windows-test: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install Rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
components: rustfmt, clippy | |
- name: Install Ninja | |
run: choco install ninja | |
- name: Run cargo check | |
uses: actions-rs/cargo@v1 | |
with: | |
command: check | |
- name: Install LLVM tools | |
run: choco install llvm | |
- name: Install cargo-llvm-cov | |
run: cargo install cargo-llvm-cov | |
- name: Run tests with coverage | |
run: cargo llvm-cov --workspace --lcov --output-path ./target/lcov.info | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v4.0.1 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} |