Update README.md #240
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: 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/[email protected] | |
| - name: Setup MSBuild | |
| uses: microsoft/setup-msbuild@v2 | |
| with: | |
| msbuild-architecture: x64 | |
| - name: Cache OpenSSL ${{env.ImageOS}} ${{env.ImageVersion}} | |
| uses: actions/[email protected] | |
| 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}} |