Skip to content

Build LOD

Build LOD #44

Workflow file for this run

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: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '18.14.2'
- name: Print PATH
run: echo $env:PATH
- name: List DLL directory
run: ls ./publish
- name: Set up MSVC
uses: ilammy/msvc-dev-cmd@v1
- name: Check DLL dependencies
run: |
dumpbin /dependents .\publish\DCL_PiXYZ.exe
dumpbin /dependents .\publish\PiXYZAPI.dll
- 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/