Skip to content

feat: Enhance clipboard image handling in RecordSection with improved… #13

feat: Enhance clipboard image handling in RecordSection with improved…

feat: Enhance clipboard image handling in RecordSection with improved… #13

Workflow file for this run

name: Build
on:
push:
branches: [main]
permissions:
contents: write
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- platform: macos-latest
target: aarch64-apple-darwin
artifact: macos-arm64
- platform: ubuntu-22.04
target: ""
artifact: linux
- platform: windows-latest
target: ""
artifact: windows
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
- name: Install macOS dependencies
if: contains(matrix.platform, 'macos')
run: brew install opus
- name: Install Linux system dependencies
if: matrix.platform == 'ubuntu-22.04'
run: |
sudo apt-get update
sudo apt-get install -y \
libwebkit2gtk-4.1-dev \
build-essential \
curl \
wget \
file \
libxdo-dev \
libssl-dev \
libayatana-appindicator3-dev \
librsvg2-dev \
libasound2-dev \
libopus-dev
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
targets: ${{ matrix.target }}
- uses: swatinem/rust-cache@v2
with:
workspaces: src-tauri
key: ${{ matrix.target }}
- name: Install frontend dependencies
run: npm ci
- name: Build Tauri app
uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: ${{ matrix.target != '' && format('--target {0}', matrix.target) || '' }}
- name: Upload macOS arm64 bundle
if: matrix.artifact == 'macos-arm64'
uses: actions/upload-artifact@v4
with:
name: macos-arm64
path: src-tauri/target/aarch64-apple-darwin/release/bundle/dmg/*.dmg
- name: Upload Linux bundle
if: matrix.artifact == 'linux'
uses: actions/upload-artifact@v4
with:
name: linux
path: |
src-tauri/target/release/bundle/deb/*.deb
src-tauri/target/release/bundle/appimage/*.AppImage
- name: Upload Windows bundle
if: matrix.artifact == 'windows'
uses: actions/upload-artifact@v4
with:
name: windows
path: |
src-tauri/target/release/bundle/msi/*.msi
src-tauri/target/release/bundle/nsis/*.exe
release:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Get version
id: version
run: echo "version=$(jq -r '.version' src-tauri/tauri.conf.json)" >> $GITHUB_OUTPUT
- name: Download all artifacts
uses: actions/download-artifact@v4
with:
path: artifacts
merge-multiple: true
- name: Create GitHub release
uses: softprops/action-gh-release@v2
with:
tag_name: v${{ steps.version.outputs.version }}-${{ github.run_number }}
name: v${{ steps.version.outputs.version }}
files: artifacts/**/*