Skip to content
Merged
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
44 changes: 10 additions & 34 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
@@ -1,45 +1,21 @@
name: Continuous integration
name: Continuous Integration

on:
pull_request:
branches: [main]
types: [opened, synchronize]

jobs:

avoid_reduncy:
cancel_previous:
name: Cancel previous redundant builds
runs-on: ubuntu-22.04
steps:
- name: Cancel previous redundant builds
uses: styfle/cancel-workflow-action@0.9.1
- uses: styfle/cancel-workflow-action@0.9.1
with:
access_token: ${{ github.token }}

install_dependencies:
name: Install dependencies
runs-on: ubuntu-22.04
steps:
- name: Checkout git repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: pnpm/action-setup@v2
with:
version: 8

- name: Set up node
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'pnpm'

- name: Install dependencies
run: npm i --ignore-scripts

build:
needs: [install_dependencies]
needs: cancel_previous
name: Build app
runs-on: ubuntu-22.04
steps:
Expand All @@ -48,10 +24,10 @@ jobs:
with:
fetch-depth: 0

- name: Set up node
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install Bun
uses: oven-sh/setup-bun@v1

- name: Build app
run: pnpm run build
- name: Install dependencies and build
run: |
bun install
bun run build
21 changes: 10 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,37 +25,36 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: setup node
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: lts/*

- uses: pnpm/action-setup@v4
with:
version: 9
- name: Install Bun
uses: oven-sh/setup-bun@v1

- name: install Rust stable
- name: Install Rust stable
uses: dtolnay/rust-toolchain@stable
with:
# Those targets are only used on macos runners so it's in an `if` to slightly speed up windows and linux builds.
# These targets are only used on macOS runners, so it's conditional to speed up other builds
targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}

- name: install dependencies (ubuntu only)
- name: Install dependencies (Ubuntu only)
if: matrix.platform == 'ubuntu-22.04'
run: |
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf

- name: install frontend dependencies
run: pnpm install # change this to npm, pnpm or bun depending on which one you use.
- name: Install frontend dependencies
run: bun install

- uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tagName: app-v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version.
tagName: app-v__VERSION__ # the action automatically replaces __VERSION__ with the app version
releaseName: 'App v__VERSION__'
releaseBody: 'See the assets to download this version and install.'
releaseDraft: true
prerelease: false
args: ${{ matrix.args }}
args: ${{ matrix.args }}
4 changes: 2 additions & 2 deletions src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"build": {
"frontendDist": "../dist",
"devUrl": "http://localhost:5173",
"beforeDevCommand": "pnpm dev",
"beforeBuildCommand": "pnpm build"
"beforeDevCommand": "bun dev",
"beforeBuildCommand": "bun run build"
},
"app": {
"windows": [
Expand Down