More fixes for github actions #4
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: Build LOD | |
on: | |
workflow_dispatch: | |
inputs: | |
paramType: | |
description: 'Hash or coords' | |
required: true | |
default: 'coords' | |
paramDescription: | |
description: 'Scene description' | |
required: true | |
default: '-129,-77' | |
paramDescription: | |
description: 'Decimation Ratio' | |
required: true | |
default: '50' | |
jobs: | |
build-and-run: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- 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: 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.param1 }}" "${{ github.event.inputs.param2 }}" "${{ github.event.inputs.param3 }}" "../scene-lod-entities-manifest-builder/" "OutputDirectoryPath/" | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v2 | |
with: | |
name: output-artifacts | |
path: OutputDirectoryPath/ |