mirror of
https://github.com/SlimeVR/SlimeVR-Server.git
synced 2026-11-20 17:11:20 -08:00
49 lines
974 B
YAML
49 lines
974 B
YAML
name: Build GUI
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- gui/**
|
|
- package*.json
|
|
pull_request:
|
|
paths:
|
|
- gui/**
|
|
- package*.json
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: windows-latest
|
|
|
|
strategy:
|
|
matrix:
|
|
node-version: [16.x]
|
|
|
|
env:
|
|
# Don't mark warnings as errors
|
|
CI: false
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Cache cargo dependencies
|
|
uses: Swatinem/rust-cache@v2
|
|
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
cache: 'npm'
|
|
|
|
- name: Build
|
|
run: |
|
|
npm ci
|
|
npm run tauri build
|
|
|
|
- name: Upload a Build Artifact
|
|
uses: actions/[email protected]
|
|
with:
|
|
# Artifact name
|
|
name: SlimeVR-GUI
|
|
# A file, directory or wildcard pattern that describes what to upload
|
|
path: gui/target/release/slimevr-ui.exe
|