Add GDK development dependencies for Linux build #9
Workflow file for this run
This file contains hidden or 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: [ main ] | |
pull_request: | |
branches: [ main ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
check: | |
name: Check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- name: Install Rust | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
components: rustfmt, clippy | |
- name: Install frontend dependencies | |
run: pnpm install | |
- name: Check Rust formatting | |
working-directory: ./src-tauri | |
run: cargo fmt --all -- --check | |
- name: Rust clippy check | |
working-directory: ./src-tauri | |
run: cargo clippy -- -D warnings | |
- name: Run Rust tests | |
working-directory: ./src-tauri | |
run: cargo test | |
build: | |
name: Build | |
needs: check | |
strategy: | |
fail-fast: false | |
matrix: | |
platform: [windows-latest, ubuntu-latest, macos-latest] | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- name: Install Rust | |
uses: dtolnay/rust-toolchain@stable | |
- name: Install dependencies (ubuntu only) | |
if: matrix.platform == 'ubuntu-latest' | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf libgdk3.0-cil libgdk3.0-cil-dev libgdk-pixbuf2.0-dev | |
- name: Install frontend dependencies | |
run: pnpm install | |
- name: Build frontend | |
run: pnpm build | |
- name: Build Rust | |
working-directory: ./src-tauri | |
run: cargo build --verbose |