Skip to content

Merge pull request #50 from Cldfire/cuda-12.2 #134

Merge pull request #50 from Cldfire/cuda-12.2

Merge pull request #50 from Cldfire/cuda-12.2 #134

Workflow file for this run

on:
push:
branches:
- main
pull_request:
name: CI
jobs:
check:
name: Check
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
rust:
- stable
- 1.60.0
# Avoid trying to build on macos-latest with Rust 1.51
#
# Rust < 1.54 doesn't work with xcode 14
# https://github.com/rust-lang/rust/issues/103044
include:
- os: macos-latest
rust: stable
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
- uses: actions-rs/cargo@v1
with:
command: check
args: --all-features
- uses: actions-rs/cargo@v1
with:
command: test
args: --no-run
fmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: clippy
- uses: actions-rs/cargo@v1
with:
command: clippy