Updated for the newest plugin contract #27
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: Check-Build | |
on: [push] | |
jobs: | |
build: | |
runs-on: windows-latest | |
strategy: | |
matrix: | |
dotnet-version: ['7.0.x' ] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: '7.0.x' | |
- name: Add MSBuild to PATH | |
uses: microsoft/[email protected] | |
- name: Setup NuGet | |
uses: nuget/setup-nuget@v1 | |
with: | |
nuget-api-key: ${{ secrets.NuGetAPIKey }} | |
nuget-version: latest | |
- name: Prepare WinRT projection files | |
run: | | |
nuget restore | |
msbuild DeviceHandler /restore /p:Platform=x64 /p:PlatformTarget=x64 /p:Configuration=Release /p:RuntimeIdentifier=win10-x64 /t:Rebuild | |
- name: Restore and build (publish) | |
run: msbuild plugin_owoTrackVR /restore /p:Platform=x64 /p:PlatformTarget=x64 /p:Configuration=Release /p:RuntimeIdentifier=win10-x64 /t:Publish /p:PublishProfile=plugin_owoTrackVR\Properties\PublishProfiles\FolderProfile.pubxml | |
- name: Pack published files | |
run: | | |
cd plugin_owoTrackVR/bin/Release/net7.0/win10-x64/publish | |
7z a plugin_owoTrackVR.zip * | |
- name: Upload plugin artifact | |
uses: "marvinpinto/action-automatic-releases@latest" | |
with: | |
repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
automatic_release_tag: "latest" | |
prerelease: true | |
title: "plugin_owoTrackVR Build Artifact" | |
files: | | |
./plugin_owoTrackVR/bin/Release/net7.0/win10-x64/publish/plugin_owoTrackVR.zip | |
./external/manifest.json |