Skip to content

p4vfs-verify

p4vfs-verify #198

Workflow file for this run

name: p4vfs-verify
on:
workflow_dispatch:
push:
branches:
- 'main'
- 'dev/*'
pull_request:
branches:
- 'main'
- 'dev/*'
env:
SOLUTION_FILE_PATH: source/P4VFS.sln
BUILD_PLATFORM: x64
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
DOTNET_NOLOGO: true
permissions:
contents: read
jobs:
build:
runs-on: ${{matrix.os}}
strategy:
matrix:
os: [windows-latest]
configuration: [DebugDev, ReleaseDev]
steps:
- name: Set image info in env
run: |
Write-Output "ImageOS=$env:ImageOS" >> $env:GITHUB_ENV
Write-Output "ImageVersion=$env:ImageVersion" >> $env:GITHUB_ENV
- name: Checkout the repo
uses: actions/checkout@v4.1.7
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v2
with:
msbuild-architecture: x64
- name: Cache OpenSSL ${{env.ImageOS}} ${{env.ImageVersion}}
uses: actions/cache@v4.0.2
with:
path: |
external/OpenSSL
!external/OpenSSL/OpenSSL.Module.cs
key: build-openssl-${{env.ImageOS}}-${{env.ImageVersion}}-${{ hashFiles('external/OpenSSL/OpenSSL.Module.cs') }}
- name: Build ${{matrix.configuration}}
working-directory: ${{env.GITHUB_WORKSPACE}}
run: msbuild.exe -clp:Summary -nologo -nodeReuse:false -verbosity:m -restore -maxcpucount "-p:Configuration=${{matrix.configuration}}" "-p:Platform=${{env.BUILD_PLATFORM}}" ${{env.SOLUTION_FILE_PATH}}