Rewrite Instance reading (again) (20x speed improvement) #10
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: 'publish' | |
on: | |
push: | |
branches: | |
- 'main' | |
jobs: | |
build-dev: | |
strategy: | |
fail-fast: false | |
matrix: | |
platform: [macos-latest, ubuntu-latest, windows-latest] | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Setup NodeJS | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 'latest' | |
- name: Install Rust stable | |
uses: dtolnay/rust-toolchain@stable | |
- name: Install pnpm | |
uses: pnpm/action-setup@v2 | |
with: | |
version: 'latest' | |
- name: Install Ubuntu package dependencies | |
if: matrix.platform == 'ubuntu-latest' | |
run: | | |
sudo apt update | |
sudo apt install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf | |
- name: Install frontend dependencies | |
run: pnpm install | |
- name: Setup rust build cache | |
uses: Swatinem/rust-cache@v2 | |
with: | |
workspaces: src-tauri | |
- name: Setup mold as the linker | |
uses: rui314/setup-mold@main | |
- name: Install Tauri-CLI | |
run: cargo install tauri-cli | |
- name: Build the app | |
run: cargo tauri build -d | |
- name: Upload build artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: builds-${{ runner.os }} | |
path: | | |
src-tauri/target/debug/bundle/**/*.AppImage | |
src-tauri/target/debug/bundle/**/*.deb | |
src-tauri/target/debug/bundle/**/*.exe | |
src-tauri/target/debug/bundle/**/*.msi | |
src-tauri/target/debug/bundle/**/*.dmg |