-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (37 loc) · 971 Bytes
/
Copy pathTestingCI.yml
File metadata and controls
41 lines (37 loc) · 971 Bytes
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
name: Rust
on:
push:
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
linux-ubuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Fetch
run: cargo fetch
- name: Build
run: cargo build --release --verbose
- name: Run tests
run: cargo test --release --verbose
- name: Run fmt check
run: cargo fmt --all -- --check
windows-native:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Setup MSVC
uses: ilammy/msvc-dev-cmd@v1
with:
arch: x64
- name: Install LLVM/Clang
run: choco install llvm -y
- name: Add LLVM to PATH
run: echo "C:\Program Files\LLVM\bin" >> $env:GITHUB_PATH
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Build
run: cargo build --release --verbose
- name: Run tests
run: cargo test --release --verbose