Use lazy_static instead of once_cell #89
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: ['*'] | |
pull_request: | |
branches: ['master'] | |
jobs: | |
format: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v3 | |
with: | |
version: latest | |
- name: Install | |
run: pnpm install | |
- name: Run Prettier | |
run: pnpm format | |
- name: Run cargo fmt | |
working-directory: src-tauri | |
run: cargo fmt | |
- name: Check output | |
run: git --no-pager diff --exit-code HEAD | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v3 | |
with: | |
version: latest | |
- name: Install Linux dependencies | |
run: | | |
sudo apt-get update -q | |
sudo apt-get install -y \ | |
build-essential \ | |
curl \ | |
file \ | |
libayatana-appindicator3-dev \ | |
libgtk-3-dev \ | |
librsvg2-dev \ | |
libssl-dev \ | |
libwebkit2gtk-4.0-dev \ | |
libudev-dev \ | |
wget | |
- name: Install | |
run: pnpm install | |
- name: Build | |
run: pnpm tauri build | |
clippy: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Linux dependencies | |
run: | | |
sudo apt-get update -q | |
sudo apt-get install -y \ | |
build-essential \ | |
curl \ | |
file \ | |
libayatana-appindicator3-dev \ | |
libgtk-3-dev \ | |
librsvg2-dev \ | |
libssl-dev \ | |
libwebkit2gtk-4.0-dev \ | |
libudev-dev \ | |
wget | |
- name: Run cargo clippy | |
working-directory: src-tauri | |
run: cargo clippy --all |