Skip to content

Support Windows

Support Windows #20

Workflow file for this run

name: check
on:
push:
branches:
- master
tags:
- v*
pull_request:
branches:
- master
permissions:
contents: write
jobs:
check-rust:
strategy:
matrix:
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive
- name: install dependencies
run: |
sudo apt-get update
# see https://github.com/tauri-apps/tauri/issues/3701
sudo apt-get install -y javascriptcoregtk-4.1 libsoup-3.0 webkit2gtk-4.1
# sudo apt-get install libgtk-3-dev
# sudo apt-get install libsoup-3.0-dev
- name: Install Rust
run: rustup toolchain install stable --component llvm-tools-preview
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- name: install nextest
uses: taiki-e/install-action@nextest
- uses: Swatinem/rust-cache@v2
- name: Check code format
run: cd src-tauri && cargo fmt -- --check
- name: Check the package for errors
run: cd src-tauri && cargo check --all
- name: Lint rust sources
run: cd src-tauri && cargo clippy --all-targets --all-features --tests --benches -- -D warnings
- name: Execute rust tests
run: cd src-tauri && cargo nextest run --all-features --no-tests=pass