Publish VSIX #2
Workflow file for this run
This file contains hidden or 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: Publish VSIX | |
on: | |
push: | |
tags: | |
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2.3.4 | |
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-.*-windows-x86_64\.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-windows-x86_64.zip -DestinationPath .\SlangServer | |
Copy-Item -Path .\SlangServer\bin\slang.dll .\SlangServer\slang.dll | |
Copy-Item -Path .\SlangServer\bin\slangd.exe .\SlangServer\slangd.exe | |
MSBuild.exe SlangClient.sln -property:Configuration=Release -property:Platform="Any CPU" | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: slang-vs-extension-vsix | |
path: | | |
bin/Release/*.vsix |