Pipeline optimization

This commit is contained in:
loucass003
2026-03-09 09:27:17 +01:00
parent 8f73937a52
commit 01a63a2e28
3 changed files with 41 additions and 10 deletions

View File

@@ -19,26 +19,47 @@ on:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
submodules: recursive
- uses: pnpm/action-setup@v4
- name: Use Node.js
uses: actions/setup-node@v6
with:
node-version-file: '.node-version'
cache: 'pnpm'
- name: Build
- name: Lint
run: |
pnpm i
cd gui
pnpm run lint
build-frontend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
submodules: recursive
- uses: pnpm/action-setup@v4
- name: Use Node.js
uses: actions/setup-node@v6
with:
node-version-file: '.node-version'
cache: 'pnpm'
- name: Build JS
run: |
pnpm i
cd gui
pnpm run build
- name: Upload Built Assets
uses: actions/upload-artifact@v6
with:
name: gui-dist-out
path: gui/out/
build:
needs: [lint, build-frontend]
strategy:
fail-fast: false
matrix:
@@ -73,19 +94,27 @@ jobs:
shell: bash
run: pnpm i
- name: Build
- name: Download Built Assets
uses: actions/download-artifact@v6
with:
name: gui-dist-out
path: gui/out/
- name: Package
shell: bash
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
NODE_OPTIONS: ${{ matrix.os == 'macos-latest' && '--max-old-space-size=4096' || '' }}
run: cd gui && pnpm run package
run: |
cd gui
pnpm exec electron-builder --publish never
- if: startsWith(matrix.os, 'windows')
name: Upload a Build Artifact (Windows)
uses: actions/upload-artifact@v6
with:
name: ${{ format('SlimeVR-GUI-Windows-{0}', env.BUILD_ARCH) }}
path: gui/dist/artifacts/win/**/**
path: gui/dist/artifacts/win/**/*
- if: startsWith(matrix.os, 'ubuntu')
name: Upload a Build Artifact (Linux)
@@ -99,4 +128,4 @@ jobs:
uses: actions/upload-artifact@v6
with:
name: SlimeVR-GUI-macOS
path: ggui/dist/artifacts/mac/**/*
path: gui/dist/artifacts/mac/**/*

View File

@@ -19,7 +19,8 @@
"start": "vite --force",
"gui": "electron-vite dev --config electron.vite.config.ts --watch",
"build": "electron-vite build --config electron.vite.config.ts",
"package": "pnpm run build && electron-builder",
"package": "electron-builder",
"package:build": "pnpm build && pnpm package",
"preview": "electron-vite preview --config electron.vite.config.ts",
"skipbundler": "vite build",
"lint": "tsc --noEmit && eslint --max-warnings=0 \"src/**/*.{js,jsx,ts,tsx,json}\" && prettier --check \"src/**/*.{js,jsx,ts,tsx,css,scss,md,json}\"",

View File

@@ -46,7 +46,8 @@ body {
}
@font-face {
src: url('/fonts/noto-sans-v42-latin-regular.woff2') format('woff2-variations');
src: url('/fonts/noto-sans-v42-latin-regular.woff2')
format('woff2-variations');
font-family: 'Noto Sans';
font-style: normal;
font-weight: 400;