Skip to content

Commit 096ce34

Browse files
authored
Create Rust-nightly-build.yml
1 parent bbf73a9 commit 096ce34

1 file changed

Lines changed: 55 additions & 0 deletions

File tree

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Windows Nightly CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
build:
11+
runs-on: windows-latest
12+
13+
steps:
14+
- name: 📥 Checkout repository
15+
uses: actions/checkout@v4
16+
17+
- name: 🦀 Install Rust Nightly
18+
uses: actions-rs/toolchain@v1
19+
with:
20+
toolchain: nightly
21+
override: true
22+
components: rustfmt, clippy
23+
24+
- name: 🔧 Cache cargo dependencies
25+
uses: actions/cache@v4
26+
with:
27+
path: |
28+
~/.cargo/registry
29+
~/.cargo/git
30+
target
31+
key: ${{ runner.os }}-cargo-nightly-${{ hashFiles('**/Cargo.lock') }}
32+
restore-keys: |
33+
${{ runner.os }}-cargo-nightly
34+
35+
- name: ✅ Check formatting
36+
run: cargo +nightly fmt --all -- --check
37+
38+
- name: 🧹 Run clippy
39+
run: cargo +nightly clippy --all-targets --all-features -- -D warnings
40+
41+
- name: 🚧 Build release version
42+
run: cargo +nightly build --release
43+
44+
- name: ⚙️ Install cargo-nextest
45+
uses: taiki-e/install-action@v2
46+
with:
47+
tool: cargo-nextest
48+
49+
- name: 🧪 Run tests
50+
run: cargo +nightly nextest run --all-targets
51+
52+
- name: 🔍 Run audit
53+
uses: actions-rs/audit-check@v1
54+
with:
55+
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)