-
Notifications
You must be signed in to change notification settings - Fork 0
71 lines (57 loc) · 2.13 KB
/
Build_LODs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: Build LOD
on:
workflow_dispatch:
inputs:
sceneType:
description: 'Hash or coords'
required: true
default: 'coords'
sceneDescription:
description: 'Scene description'
required: true
default: '-129,-77'
decimationRatio:
description: 'Decimation Ratio'
required: true
default: '50'
jobs:
build-and-run:
runs-on: windows-2019
steps:
- uses: actions/checkout@v2
with:
lfs: true # This ensures LFS is initialized
# - name: Install Chocolatey
# run: |
# Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
- 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: 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: List DLL directory
run: ls ./publish && ls ${{ github.workspace }}/publish
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '18.14.2'
- name: Run the application
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
with:
name: output-artifacts
path: OutputDirectoryPath/