Skip to content

Don't force square aspect ratio for image previews #26

Don't force square aspect ratio for image previews

Don't force square aspect ratio for image previews #26

Workflow file for this run

name: Build
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- platform: "ubuntu-22.04"
- platform: "windows-latest"
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Setup Rust
uses: dtolnay/rust-toolchain@nightly
with:
components: 'clippy, rustfmt'
- name: Rust cache
uses: Swatinem/[email protected]
with:
prefix-key: v0-rust-${{ matrix.platform }}
workspaces: "src-tauri -> target"
- name: Install build dependencies (Ubuntu only)
if: matrix.platform == 'ubuntu-22.04'
run: |
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf
- name: Install front-end dependencies
run: |
yarn set version 4.0.2
yarn
- name: Disable updater
uses: restackio/[email protected]
with:
file: "src-tauri/tauri.conf.json"
fields: "{\"tauri.updater.active\": false}"
- name: Write env file
uses: DamianReeves/[email protected]
with:
path: "./.env"
contents: |
DUMMY_ENV=dummy
- name: Build
env:
NODE_OPTIONS: "--max-old-space-size=4096"
run: |
yarn tauri build