-
Notifications
You must be signed in to change notification settings - Fork 6
49 lines (45 loc) · 1.28 KB
/
build-and-test.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
40
41
42
43
44
45
46
47
48
49
name: Build and Test
on:
push:
branches:
- main
paths-ignore:
- "**/*.md"
pull_request:
branches:
- main
types:
- opened
- reopened
- synchronize
- ready_for_review
paths-ignore:
- "**/*.md"
env:
CARGO_TERM_COLOR: always
SCCACHE_GHA_ENABLED: "false"
RUSTC_WRAPPER: "sccache"
jobs:
# TODO: Add a job to run clippy
lint:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Check formatting
run: cargo fmt --all -- --check
# TODO: Temporarily disable GPU benchmarks since it's under refactoring
# gpu-benchmarks:
# runs-on: macos-latest
# steps:
# - uses: actions/checkout@v4
# - name: Install Rust toolchain
# uses: actions-rs/toolchain@v1
# with:
# toolchain: "1.77"
# override: true
# - name: Run sccache-cache
# uses: mozilla-actions/[email protected]
# - name: Run GPU Benchmarks tests
# run: |
# cd mopro-msm
# cargo test --release test_msm_correctness -- --nocapture