mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-07 06:56:04 +02:00
Linux github action
This commit is contained in:
@@ -1,61 +1,45 @@
|
|||||||
name: VRCX
|
name: VRCX
|
||||||
|
|
||||||
on:
|
on:
|
||||||
- push
|
- workflow_dispatch
|
||||||
- pull_request
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build_vrcx_win:
|
build_dotnet:
|
||||||
runs-on: ubuntu-latest
|
runs-on: windows-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
- name: Setup .NET 8
|
||||||
|
uses: actions/setup-dotnet@v3
|
||||||
|
with:
|
||||||
|
dotnet-version: "8.0.x"
|
||||||
|
- uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: vrcx
|
||||||
|
path: bin/x64/Release
|
||||||
|
|
||||||
- name: Setup .NET 8
|
build_node:
|
||||||
uses: actions/setup-dotnet@v3
|
runs-on: ubuntu-latest
|
||||||
with:
|
defaults:
|
||||||
dotnet-version: '8.0.x'
|
run:
|
||||||
|
working-directory: html
|
||||||
|
|
||||||
- name: Setup NodeJS 18
|
steps:
|
||||||
uses: actions/setup-node@v4
|
- uses: actions/checkout@v3
|
||||||
with:
|
- name: Use Node.js ${{ matrix.node-version }}
|
||||||
node-version: 18
|
uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
- name: Setup NSIS
|
node-version: ${{ matrix.node-version }}
|
||||||
run: sudo apt update && sudo apt install -y nsis nsis-pluginapi
|
- name: Restore dependencies
|
||||||
|
run: npm ci
|
||||||
- name: Restore Node Dependencies
|
- name: Build
|
||||||
run: cd ${{ github.workspace }}/html && npm ci && cd ${{ github.workspace }}
|
run: npm run production
|
||||||
|
- name: Fix folder structure
|
||||||
#- name: JS Lint
|
id: fix-folders
|
||||||
# run: cd html && npm run lint && cd ..
|
run: |
|
||||||
|
mkdir upload
|
||||||
- name: Build Web UI
|
mv dist upload/html
|
||||||
run: cd ${{ github.workspace }}/html && npm run production && cd ${{ github.workspace }}
|
- uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
- name: Build .NET Application
|
name: vrcx
|
||||||
run: dotnet build -p:Configuration=Release -p:Platform=x64 -p:EnableWindowsTargeting=true --self-contained
|
path: html/upload
|
||||||
|
|
||||||
- name: Copy Web UI
|
|
||||||
run: cp -r ${{ github.workspace }}/html/dist ${{ github.workspace }}/bin/x64/Release/html
|
|
||||||
|
|
||||||
- name: Fix NSIS Permissions
|
|
||||||
run: sudo chown -R $(whoami) /usr/share/nsis/Plugins/
|
|
||||||
|
|
||||||
- name: Build Installer
|
|
||||||
uses: joncloud/makensis-action@v4
|
|
||||||
with:
|
|
||||||
script-file: ${{ github.workspace }}/Installer/installer.nsi
|
|
||||||
additional-plugin-paths: ${{ github.workspace }}/Installer/Plugins
|
|
||||||
|
|
||||||
- name: Upload Zip
|
|
||||||
uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: "VRCX"
|
|
||||||
path: ${{ github.workspace }}/bin/x64/Release/*
|
|
||||||
|
|
||||||
- name: Upload Installer
|
|
||||||
uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: "VRCX_Setup"
|
|
||||||
path: ${{ github.workspace }}/Installer/VRCX_Setup.exe
|
|
||||||
|
|||||||
Reference in New Issue
Block a user