Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 20 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,27 @@
name: CI

defaults:
run:
shell: bash

on:
push:
branches: [main]
paths:
- "src/**"
- "src-tauri/**"
- "crates/**"
- "package.json"
- "package-lock.json"
- ".github/workflows/ci.yml"
pull_request:
branches: [main]
paths:
- "src/**"
- "src-tauri/**"
- "crates/**"
- "package.json"
- "package-lock.json"
- ".github/workflows/ci.yml"

jobs:
Expand All @@ -33,6 +43,12 @@ jobs:
- platform: macos-latest
kind: rust
task: test
- platform: windows-latest
kind: js
task: test
- platform: windows-latest
kind: rust
task: test

name: ${{ matrix.kind }} / ${{ matrix.task }} / ${{ matrix.platform }}
runs-on: ${{ matrix.platform }}
Expand All @@ -56,21 +72,21 @@ jobs:
uses: cargo-bins/cargo-binstall@main

- name: install dependencies (ubuntu only)
if: matrix.platform == 'ubuntu-22.04' # This must match the platform value defined above.
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y git
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf

- name: Install git and jj CLI (macOS)
if: matrix.platform == 'macos-latest'
if: runner.os == 'macOS'
run: |
brew update
brew install git jj
echo "$(brew --prefix)/bin" >> $GITHUB_PATH

- name: Install jj CLI (ubuntu)
if: matrix.platform == 'ubuntu-22.04' # This must match the platform value defined above.
- name: Install jj CLI (non-macOS)
if: runner.os != 'macOS'
run: |
cargo binstall --strategies crate-meta-data jj-cli
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
Expand Down
18 changes: 14 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Release

defaults:
run:
shell: bash

on:
workflow_dispatch:

Expand Down Expand Up @@ -64,10 +68,10 @@ jobs:
args: "--target x86_64-apple-darwin"
# - platform: "macos-latest"
# args: "--target universal-apple-darwin"
# - platform: 'ubuntu-22.04'
# args: ''
# - platform: 'windows-latest'
# args: ''
- platform: 'ubuntu-22.04'
args: ''
- platform: 'windows-latest'
args: ''
runs-on: ${{ matrix.platform }}
environment: prod
steps:
Expand All @@ -84,6 +88,12 @@ jobs:
with:
targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}

- name: install dependencies (ubuntu only)
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf

- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
Expand Down
Loading