Skip to content

Maybe GitHub Actions hosted runners are using an old version of Visua… #43

Maybe GitHub Actions hosted runners are using an old version of Visua…

Maybe GitHub Actions hosted runners are using an old version of Visua… #43

Workflow file for this run

name: MSBuild
on:
push:
branches: [ "master" ]
workflow_dispatch:
permissions:
contents: read
jobs:
build:
runs-on: windows-latest
steps:
- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v2
- name: Clone
uses: actions/checkout@v6
- name: Initialize test reporting
uses: testspace-com/setup-testspace@v1
with:
domain: ${{github.repository_owner}}
- name: Restore
run: msbuild WinampNowPlayingToFile/WinampNowPlayingToFile.csproj -t:restore -p:Configuration=Release -p:RestoreLockedMode=true -m
- name: Build
run: |
msbuild gen_WinampNowPlayingToFile -t:build -p:Configuration=Release -m
# - name: Test
# run: |
# dotnet build Test --no-dependencies --configuration Release
# dotnet publish Test --no-build --configuration Release
# dotnet vstest Test\bin\Release\net472\publish\Test.dll --collect:"XPlat code coverage" --settings:Test\Test.runsettings --logger:"trx;LogFileName=TestResults.xml"
# Out-File -InputObject "TEST_EXIT_CODE=$LASTEXITCODE" -FilePath $env:GITHUB_ENV -Append -Encoding UTF8
# Copy-Item TestResults/*/coverage.info TestResults -ErrorAction Continue
# exit 0
# - name: Upload test report
# run: testspace TestResults/TestResults.xml
# - name: Upload coverage
# uses: coverallsapp/github-action@648a8eb78e6d50909eff900e4ec85cab4524a45b
# with:
# github-token: ${{ secrets.GITHUB_TOKEN }}
# file: TestResults/coverage.info
# format: lcov
# - name: Stop if tests failed
# run: exit $env:TEST_EXIT_CODE
- name: Prepare artifacts
run: |
mkdir .\artifact\plugins\
copy .\gen_WinampNowPlayingToFile\Release\*.dll .\artifact\
move .\artifact\gen_WinampNowPlayingToFile.dll .\artifact\plugins\
- name: Upload artifacts
uses: actions/upload-artifact@v6
with:
name: WinampNowPlayingToFile
path: .\artifact\
if-no-files-found: error