Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix ci

Louis Beaumont485aa5d14f14
diff --git a/.github/workflows/release-app.yml b/.github/workflows/release-app.yml
index 199204460..d4e97ebfd 100644
--- a/.github/workflows/release-app.yml
+++ b/.github/workflows/release-app.yml
@@ -1,84 +1,88 @@
# # Run for macOS
-# act -W .github/workflows/release-app.yml --container-architecture linux/amd64 -j publish-tauri -P macos-latest=-self-hosted
+# act -W .github/workflows/release-app.yml --container-architecture linux/amd64 -j publish-tauri -P macos-latest=-self-hosted
# # Run for Linux
-# act -W .github/workflows/release-app.yml --container-architecture linux/amd64 -j publish-tauri -P ubuntu-22.04=-self-hosted
-
-
+# act -W .github/workflows/release-app.yml --container-architecture linux/amd64 -j publish-tauri -P ubuntu-22.04=-self-hosted
name: Release
on:
- push:
- tags:
- - "v*"
- workflow_dispatch:
+ push:
+ tags:
+ - "v*"
+ workflow_dispatch:
jobs:
- publish-tauri:
- permissions:
- contents: write
- strategy:
- fail-fast: false
- matrix:
- include:
- - platform: "macos-latest" # for Arm based macs (M1 and above).
- args: "--target aarch64-apple-darwin"
- - platform: "macos-latest" # for Intel based macs.
- args: "--target x86_64-apple-darwin"
- - platform: "ubuntu-24.04" # Ubuntu x86_64
- args: ""
- - platform: "windows-latest" # Windows x86_64
- args: '--target x86_64-pc-windows-msvc --features "openblas"'
- pre-build-args: "--openblas"
+ publish-tauri:
+ permissions:
+ contents: write
+ strategy:
+ fail-fast: false
+ matrix:
+ include:
+ - platform: "macos-latest" # for Arm based macs (M1 and above).
+ args: "--target aarch64-apple-darwin"
+ - platform: "macos-latest" # for Intel based macs.
+ args: "--target x86_64-apple-darwin"
+ - platform: "ubuntu-24.04" # Ubuntu x86_64
+ args: ""
+ - platform: "windows-latest" # Windows x86_64
+ args: '--target x86_64-pc-windows-msvc --features "openblas"'
+ pre-build-args: "--openblas"
+
+ runs-on: ${{ matrix.platform }}
+ steps:
+ - uses: actions/checkout@v4
- runs-on: ${{ matrix.platform }}
- steps:
- - uses: actions/checkout@v4
+ - name: setup Bun
+ uses: oven-sh/setup-bun@v1
- - name: setup Bun
- uses: oven-sh/setup-bun@v1
+ - name: Rust cache
+ uses: swatinem/rust-cache@v2
- - name: Rust cache
- uses: swatinem/rust-cache@v2
+ - 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.
+ targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}
- - 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.
- targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}
+ - name: Install frontend dependencies
+ run: bun install
+ working-directory: ./examples/apps/screenpipe-app-tauri
- - name: Install frontend dependencies
- run: bun install
- working-directory: ./examples/apps/screenpipe-app-tauri
+ - name: Cache Pre Build
+ id: cache-pre-build
+ uses: actions/cache@v4
+ with:
+ path: |
+ examples/apps/screenpipe-app-tauri/src-tauri/openblas
+ examples/apps/screenpipe-app-tauri/src-tauri/clblast
+ examples/apps/screenpipe-app-tauri/src-tauri/ffmpeg
+ key: ${{ matrix.platform }}-${{ matrix.args }}-pre-build
- - name: Cache Pre Build
- id: cache-pre-build
- uses: actions/cache@v4
- with:
- path: |
- examples/apps/screenpipe-app-tauri/src-tauri/openblas
- examples/apps/screenpipe-app-tauri/src-tauri/clblast
- examples/apps/screenpipe-app-tauri/src-tauri/ffmpeg
- key: ${{ matrix.platform }}-${{ matrix.args }}-pre-build
+ # Run pre build
+ - name: Run pre_build.js on ${{ matrix.platform }}
+ run: bun ./examples/apps/screenpipe-app-tauri/scripts/pre_build.js ${{ matrix.pre-build-args }}
- # Run pre build
- - name: Run pre_build.js on ${{ matrix.platform }}
- run: bun ./examples/apps/screenpipe-app-tauri/scripts/pre_build.js ${{ matrix.pre-build-args }}
+ - name: Install Linux dependencies
+ if: matrix.platform == 'ubuntu-24.04'
+ run: |
+ sudo apt-get update
+ sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf
- - name: Build
- uses: tauri-apps/tauri-action@v0
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
- TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}
- with:
- tagName: v__VERSION__ # the action automatically replaces __VERSION__ with the app version.
- releaseName: "v__VERSION__"
- releaseBody: "What's new? πŸŽ‰πŸ“£"
- releaseDraft: true
- prerelease: true
- args: ${{ matrix.args }}
- projectPath: "./examples/apps/screenpipe-app-tauri"
- tauriScript: bunx tauri
+ - name: Build
+ uses: tauri-apps/tauri-action@v0
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
+ TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}
+ with:
+ tagName: v__VERSION__ # the action automatically replaces __VERSION__ with the app version.
+ releaseName: "v__VERSION__"
+ releaseBody: "What's new? πŸŽ‰πŸ“£"
+ releaseDraft: true
+ prerelease: true
+ args: ${{ matrix.args }}
+ projectPath: "./examples/apps/screenpipe-app-tauri"
+ tauriScript: bunx tauri