Skip to content

Commit

Permalink
Adds Vulkan DLL to output directory
Browse files Browse the repository at this point in the history
  • Loading branch information
dalkia authored and aleortega committed Jan 8, 2024
1 parent 40f8dd0 commit 736299c
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 10 deletions.
30 changes: 25 additions & 5 deletions .github/workflows/Build_LODs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,28 +18,48 @@ on:

jobs:
build-and-run:
runs-on: windows-latest
runs-on: windows-2019

steps:
- uses: actions/checkout@v2
with:
lfs: true # This ensures LFS is initialized
lfs: true

- name: Specify Chocolatey Source
run: choco source add -n=chocolatey -s=https://chocolatey.org/api/v2/

- name: Install Visual C++ Redistributable
run: choco install vcredist-all -y

- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: '3.1.x'

- name: Build with dotnet
run: dotnet build --configuration Release --output ./build_output
- name: Publish with dotnet
run: dotnet publish -c Release -r win10-x64 -o ./publish --self-contained true

- name: Install Vulkan SDK
uses: jakoch/[email protected]
with:
vulkan_version: 1.3.268.0
optional_components: com.lunarg.vulkan.vma
install_runtime: true
cache: true
destination: ${{ github.workspace }}/publish

- name: Move Vulkan DLL to output directory
run: |
mv ./publish/1.3.268.0/runtime/x64/vulkan-1.dll ./publish/
shell: bash

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '18.14.2'

- name: Run the application
run: .\build_output\DCL_PiXYZ.exe "${{ github.event.inputs.sceneType }}" "${{ github.event.inputs.sceneDescription }}" "${{ github.event.inputs.decimationRatio }}" "scene-lod-entities-manifest-builder/" "OutputDirectoryPath/"
run: .\publish\DCL_PiXYZ.exe "${{ github.event.inputs.sceneType }}" "${{ github.event.inputs.sceneDescription }}" "${{ github.event.inputs.decimationRatio }}" "scene-lod-entities-manifest-builder/" "OutputDirectoryPath/"

- name: Upload artifacts
uses: actions/upload-artifact@v2
Expand Down
2 changes: 1 addition & 1 deletion DCL_PiXYZ/DCL_PiXYZ.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>WinExe</OutputType>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>

Expand Down
4 changes: 0 additions & 4 deletions DCL_PiXYZ/PXZEntryPoint.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,11 @@
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Numerics;
using System.Threading.Tasks;
using DCL_PiXYZ.SceneRepositioner.JsonParsing;
using SceneImporter;
using UnityEngine.Pixyz.Algo;
using UnityEngine.Pixyz.API;
using UnityEngine.Pixyz.Geom;
using UnityEngine.Pixyz.Scene;
using Vector3 = System.Numerics.Vector3;

namespace DCL_PiXYZ
{
Expand Down

0 comments on commit 736299c

Please sign in to comment.