Split universal and individual binary build steps #7
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: | |
workflow_call: {} # Allow this workflow to be called by other workflows | |
pull_request: | |
push: | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
# Add Rust cache | |
- uses: Swatinem/rust-cache@v2 | |
# Add Bun cache | |
- name: Cache bun dependencies | |
uses: actions/cache@v4 | |
with: | |
path: | | |
~/.bun/install/cache | |
node_modules | |
key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lockb') }} | |
restore-keys: | | |
${{ runner.os }}-bun- | |
- name: Setup bun | |
uses: oven-sh/setup-bun@v1 | |
with: | |
bun-version: 1.1.39 | |
- name: Install Rust stable | |
uses: dtolnay/rust-toolchain@stable | |
- name: Install system dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf | |
- name: Install frontend dependencies | |
run: bun install | |
- name: Run tests | |
run: cd src-tauri && cargo test --all-features | |
- name: Run clippy | |
run: cd src-tauri && cargo clippy -- -D warnings |