First draft on github actions #1
Workflow file for this run
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
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
jobs: | ||
build: | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Get Build Version | ||
run: | | ||
$lastTagHash = $(git rev-list --tags --max-count=1) | ||
$lastTagName = $(git describe --tags $lastTagHash) | ||
$lastRelease = $lastTagName.Substring(1) | ||
echo "lastReleaseVersion=$lastRelease" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append | ||
shell: pwsh | ||
- uses: microsoft/setup-msbuild@v2 | ||
- uses: NuGet/[email protected] | ||
- name: Restore NuGet packages | ||
run: nuget restore *.sln | ||
- name: Build solution | ||
run: msbuild Celeste_Launcher.sln /nologo /nr:false /p:Version=$env:lastRelease /p:platform="Any CPU" /p:configuration="Release" | ||
# "msbuild.exe" "D:\a\1\s\Celeste_Launcher.sln" /nologo /nr:false /dl:CentralLogger,"D:\a\_tasks\VSBuild_71a9a2d3-a98a-4caa-96ab-affca411ecda\1.231.0\node_modules\azure-pipelines-tasks-msbuildhelpers\tools\Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll";"RootDetailId=3cefbdaf-2324-49fd-9159-b9ceb46a7025|SolutionDir=D:\a\1\s|enableOrphanedProjectsLogs=true"*ForwardingLogger,"D:\a\_tasks\VSBuild_71a9a2d3-a98a-4caa-96ab-affca411ecda\1.231.0\node_modules\azure-pipelines-tasks-msbuildhelpers\tools\Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll" /p:Version=3.9.0 /p:platform="Any CPU" /p:configuration="Release" /p:VisualStudioVersion="17.0" /p:_MSDeployUserAgent="VSTS_460e7037-08b0-4e9d-a767-9b7668758519_build_1_0" |