Rework window management & config system #16
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: Build | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
jobs: | |
build: | |
runs-on: macos-latest | |
steps: | |
- name: Checkout the code | |
uses: actions/checkout@v3 | |
- name: 🗄️ Setup Rust cache | |
uses: actions/cache@v2 | |
with: | |
key: ${{ hashFiles('Cargo.lock') }} | |
path: | | |
~/.cargo/registry/index | |
~/.cargo/registry/cache | |
~/.cargo/git | |
./target | |
- name: 🍃 Install PNPM | |
uses: pnpm/action-setup@v2 | |
with: | |
version: latest | |
run_install: false | |
- name: 🍃 Install Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 'lts/*' | |
cache: pnpm | |
cache-dependency-path: | | |
frontend/pnpm-lock.yaml | |
- name: 🦀 Install Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
- name: 🔌 Install Node.js dependencies | |
run: cd frontend && pnpm install | |
- name: 🔌 Download Rust dependencies | |
run: cargo fetch | |
- name: Build the app | |
uses: tauri-apps/tauri-action@v0 | |
- name: 🚀 Upload macOS dmg | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Commit.dmg | |
path: | | |
target/release/bundle/dmg/Commit*.dmg | |
- name: 🚀 Upload macOS App | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Commit.app | |
path: | | |
target/release/bundle/macos/ |