mirror of
https://github.com/SlimeVR/SlimeVR-Server.git
synced 2026-04-06 02:01:58 +02:00
Pipeline optimization
This commit is contained in:
45
.github/workflows/build-gui.yml
vendored
45
.github/workflows/build-gui.yml
vendored
@@ -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/**/*
|
||||
|
||||
@@ -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}\"",
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user