-
Notifications
You must be signed in to change notification settings - Fork 0
86 lines (73 loc) · 2.77 KB
/
dispatch-lod-conversion.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
name: Dispatch LOD Conversion
on:
workflow_dispatch:
inputs:
coords:
description: 'Coordinates to process'
required: true
default: '5,19'
decimationValues:
description: 'LOD decimations'
required: true
default: '500'
startingLODLevel:
description: 'Starting LOD level'
required: true
default: '3'
jobs:
build-and-run:
runs-on: windows-2019
steps:
- uses: actions/checkout@v2
with:
lfs: true
- name: Checkout NuGet PiXYZ package
uses: actions/checkout@v2
with:
repository: 'decentraland/PiXYZ-NuGetPackage'
token: ${{ secrets.PAT_NUGET_TOKEN }}
path: 'PiXYZ-NuGetPackage'
lfs: true
- name: Build license
run: |
cd consumer-server && yarn && yarn build:admin && yarn admin:license ${{ secrets.LICENSE_KEY }}
- 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: Copy manifest builder to publish directory
run: |
Copy-Item -Path "${{ github.workspace }}\DCL_PiXYZ\bin\Release\netcoreapp3.1\win10-x64\scene-lod-entities-manifest-builder" -Destination "${{ github.workspace }}\publish\scene-lod-entities-manifest-builder" -Recurse
shell: pwsh
- name: Copy road coordinates
run: |
Copy-Item -Path "${{ github.workspace }}\DCL_PiXYZ\bin\Release\netcoreapp3.1\win10-x64\RoadCoordinates.json" -Destination "${{ github.workspace }}\publish"
shell: pwsh
- 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 }}/vulkan-sdt
- name: Move Vulkan DLL to output directory
run: |
mv ./vulkan-sdt/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
env:
PIXYZPRODUCTNAME: ${{ secrets.PIXYZPRODUCTNAME }}
PIXYZTOKEN: ${{ secrets.PIXYZTOKEN }}
run: .\publish\DCL_PiXYZ.exe "coords" ${{ github.event.inputs.coords }} "OutputDirectoryPath/" "${{ github.workspace }}\publish\scene-lod-entities-manifest-builder" "false" "true" "${{ github.event.inputs.decimationValues }}" "${{ github.event.inputs.startingLODLevel }}"
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: LOD-${{ github.event.inputs.coords }}
path: OutputDirectoryPath/