This repository has been archived by the owner on Nov 9, 2023. It is now read-only.
Shader update #212
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: CI | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
env: | |
SOLUTION_FILE_PATH: NEOSPlus.sln | |
BUILD_CONFIGURATION: Release | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Add MSBuild to PATH | |
uses: microsoft/setup-msbuild@v1.0.2 | |
- name: Restore Nuget | |
working-directory: ${{env.GITHUB_WORKSPACE}} | |
run: nuget restore ${{env.SOLUTION_FILE_PATH}} | |
- name: Download and Extract Neos | |
shell: pwsh | |
run: | | |
$neosInstallPath = "C:\Neos\app" | |
New-Item -Type Directory -Path $neosInstallPath -Force | |
cd $neosInstallPath | |
$web = [System.Net.WebClient]::new() | |
$web.DownloadFile("https://www.7-zip.org/a/7zr.exe","$PWD\7zr.exe") | |
$cvstring = $web.DownloadString('https://cloudxstorage.blob.core.windows.net/install/Pro/Public') | |
$web.DownloadFile("https://assets.neos.com/install/Pro/Data/$cvstring.7z","$env:TEMP\neosupdate.7z") | |
.\7zr.exe x -y "$env:TEMP\neosupdate.7z" * | |
Remove-Item "$env:TEMP\neosupdate.7z" | |
- name: Build | |
working-directory: ${{env.GITHUB_WORKSPACE}} | |
run: msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} ${{env.SOLUTION_FILE_PATH}} |