Skip to content

Update colorMap and animation in FMSControlData.svelte #11

Update colorMap and animation in FMSControlData.svelte

Update colorMap and animation in FMSControlData.svelte #11

Workflow file for this run

name: Build
on:
push:
workflow_dispatch:
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Setup pNPM
uses: pnpm/action-setup@v2
with:
version: 8
- name: Setup NodeJS
uses: actions/setup-node@v3
with:
node-version: 21
cache: 'pnpm'
cache-dependency-path: pnpm-lock.yaml
- name: Install dependencies for Tauri (ubuntu only)
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf
- name: Load cached node_modules
uses: actions/cache@v3
with:
path: |
node_modules
~/.pnpm-store
key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }}
restore-keys: ${{ runner.os }}-pnpm-
- name: Install dependencies
run: pnpm install
- name: Load cached Cargo
uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
key: ${{ runner.os }}-cargo-${{ hashFiles('src-tauri/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-
- name: Build the app
run: pnpm tauri build
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: ${{ runner.os }} ${{ runner.arch }} artifacts
# No .app because it's pretty big and .dmg is nicer
path: |
src-tauri/target/release/bundle/*/*.dmg
src-tauri/target/release/bundle/*/*.app
src-tauri/target/release/bundle/*/*.AppImage
src-tauri/target/release/bundle/*/*.deb
src-tauri/target/release/bundle/*/*.msi
# - name: Build the app
# uses: tauri-apps/tauri-action@v0
# working-directory: src/frontend
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# tagName: v__VERSION__ # tauri-action replaces \_\_VERSION\_\_ with the app version
# releaseName: 'v__VERSION__'
# releaseBody: 'See the assets to download this version and install.'
# releaseDraft: true
# prerelease: false