v1.1.5 #41
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 VSIX | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/[email protected] | |
with: | |
submodules: 'true' | |
fetch-depth: '0' | |
- name: Add nuget to PATH | |
uses: nuget/setup-nuget@v1 | |
- name: Download artifact - win64 | |
id: download-win32 | |
uses: dsaltares/fetch-gh-release-asset@master | |
with: | |
repo: shader-slang/slang | |
file: 'slang-.*-win64\.zip' | |
target: "./" | |
regex: true | |
- name: Restore | |
run: nuget restore | |
- name: setup-msbuild | |
uses: microsoft/setup-msbuild@v1 | |
- name: Copy Slang binaries and Build VSIX | |
run: | | |
$verName="${{steps.download-win32.outputs.version}}"; | |
$verName=$verName.SubString(1, ($verName.Length-1)); | |
Expand-Archive -Path slang-$verName-win64.zip -DestinationPath .\SlangServer | |
Copy-Item -Path .\SlangServer\bin\windows-x64\release\slang.dll .\SlangServer\slang.dll | |
Copy-Item -Path .\SlangServer\bin\windows-x64\release\slangd.exe .\SlangServer\slangd.exe | |
MSBuild.exe SlangClient.sln -property:Configuration=Release -property:Platform="Any CPU" | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: slang-vsix | |
path: | | |
bin/Release/*.vsix |