Skip to content

Fix node constraints #15

Fix node constraints

Fix node constraints #15

Workflow file for this run

# 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
push:
branches:
- dev
- 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: 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/[email protected]
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: 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/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}