This repository has been archived by the owner on Sep 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
70 lines (68 loc) · 1.81 KB
/
ci.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: CI
on: [push, pull_request]
jobs:
check:
runs-on: windows-2022
steps:
- run: git config --global core.autocrlf false
name: Disable autocrlf
- uses: actions/checkout@v4
name: Checkout
- uses: actions/setup-node@v4
with:
node-version: lts/*
check-latest: true
cache: npm
name: Setup Node
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
name: Setup Rust
- run: npm ci
name: Install NPM dependencies
- run: npm run check
name: Check TS
- run: npm run lint
name: Lint JS/TS
- run: cargo check --release
working-directory: src-tauri
name: Check Rust
- run: cargo clippy --release -- -D clippy::all
working-directory: src-tauri
name: Clippy Rust
- run: cargo fmt --check
working-directory: src-tauri
name: Check Rust format
build:
runs-on: windows-2022
steps:
- run: git config --global core.autocrlf false
name: Disable autocrlf
- uses: actions/checkout@v4
name: Checkout
- uses: actions/setup-node@v4
with:
node-version: lts/*
check-latest: true
cache: npm
name: Setup Node
- uses: actions/cache@v3
with:
key: cargo
path: ~/.cargo
name: Cache cargo
- uses: dtolnay/rust-toolchain@stable
with:
targets: i686-pc-windows-msvc
name: Setup Rust
- run: npm ci
name: Install NPM dependencies
- run: cargo install tauri-cli --profile dev
name: Install Tauri CLI
- run: cargo tauri build --target i686-pc-windows-msvc
name: Build
- uses: actions/upload-artifact@v3
with:
name: artifact
path: src-tauri/target/i686-pc-windows-msvc/release/brightness-tray.exe
name: Upload artifact