forked from HigherOrderCO/HVM
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (35 loc) · 946 Bytes
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Build and Lint on Multiple Platforms
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
- run: rustup component add clippy
- uses: Swatinem/rust-cache@v2
with:
# To only cache runs from `master`:
save-if: ${{ github.ref == 'refs/heads/master' }}
- uses: Jimver/[email protected]
id: cuda-toolkit
with:
cuda: '12.4.1'
method: 'network'
sub-packages: '[ "nvcc", "cudart", "nvrtc" ]'
if: matrix.os != 'macOS-latest'
- name: Clippy Check
run: cargo clippy -- -D warnings
continue-on-error: true
- name: Build
run: cargo build