File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 }}
Original file line number Diff line number Diff line change 1+ name : Release Build
2+
3+ on :
4+ push :
5+ tags :
6+ - ' v*.*.*' # Matches tags like v1.0.0, v2.1.3, etc.
7+
8+ jobs :
9+ build :
10+ runs-on : windows-latest
11+
12+ steps :
13+ - name : 📥 Checkout code
14+ uses : actions/checkout@v4
15+
16+ - name : 🦀 Install Rust Nightly
17+ uses : actions-rs/toolchain@v1
18+ with :
19+ toolchain : nightly
20+ override : true
21+
22+ - name : 🚧 Build release binary
23+ run : cargo +nightly build --release
24+
25+ - name : 📦 Upload release binary
26+ uses : softprops/action-gh-release@v1
27+ with :
28+ files : |
29+ target/release/tmr.exe
30+ env :
31+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments