Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

debug_assert

debug_assert #40

Workflow file for this run

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