Dispatch LOD Conversion #17
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: 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\SingleParcelRoadCoordinates.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@v4 | |
with: | |
name: LOD-${{ github.event.inputs.coords }} | |
path: OutputDirectoryPath/ |