Hack another fallback to PROJ_DATA in the proj path search #273
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: SharpProj | |
on: | |
push: | |
branches: [ main, stable/* ] | |
pull_request: | |
branches: [ main, stable/* ] | |
env: | |
# Path to the solution file relative to the root of the project. | |
SOLUTION_FILE_PATH: build/src/SharpProj.sln | |
buildDir: '${{ github.workspace }}/build' | |
vcpkgExe: '${{ github.workspace }}/vcpkg/vcpkg.exe' | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- name: Git Checkout | |
uses: actions/checkout@v3 | |
with: | |
path: build | |
- name: Setup VCPKG | |
uses: lukka/run-vcpkg@v10 | |
with: | |
vcpkgDirectory: '${{ github.workspace }}/vcpkg' | |
vcpkgGitCommitId: 0e47c1985273129e4d0ee52ff73bed9125555de8 | |
- name: Show VCPKG version directly | |
run: ${{env.vcpkgExe}} --version | |
- name: Where vcpkg | |
run: where vcpkg | |
- name: Add MSBuild to PATH | |
uses: microsoft/setup-msbuild@v1 | |
- name: Setup VSTest Path | |
uses: darenm/[email protected] | |
- name: Ensure Proj packages are available | |
run: ${{env.vcpkgExe}} install "tiff[core]:x64-windows-static-md" "proj[core,tiff]:x64-windows-static-md" "tiff[core]:x86-windows-static-md" "proj[core,tiff]:x86-windows-static-md" "tiff[core]:arm64-windows-static-md" "proj[core,tiff]:arm64-windows-static-md" | |
- name: Setup version | |
working-directory: ${{env.GITHUB_WORKSPACE}} | |
run: cmd.exe /C build\scripts\gh-version-setup vcpkg\installed\x86-windows-static-md\include\proj.h ${{ github.run_number }} | |
- name: Create nupkg for db package | |
working-directory: ${{env.GITHUB_WORKSPACE}} | |
run: cmd.exe /C build\scripts\gh-build-nuget.cmd --db-only | |
- name: Restore NuGet package (legacy style, vcxproj only) | |
working-directory: ${{env.GITHUB_WORKSPACE}} | |
run: nuget restore build\src\SharpProj\SharpProj.vcxproj -SolutionDirectory build\src | |
- name: Build-x86 | |
working-directory: ${{env.GITHUB_WORKSPACE}} | |
run: msbuild /r /v:m /p:Platform=x86 /p:Configuration=Release ${{env.SOLUTION_FILE_PATH}} @build\scripts\msbuild-version.rsp | |
- name: Build-x64 | |
working-directory: ${{env.GITHUB_WORKSPACE}} | |
run: msbuild /r /v:m /p:Platform=x64 /p:Configuration=Release ${{env.SOLUTION_FILE_PATH}} @build\scripts\msbuild-version.rsp | |
- name: Build-x86-Core | |
working-directory: ${{env.GITHUB_WORKSPACE}} | |
run: msbuild /r /v:m /p:Platform=x86 /p:Configuration=ReleaseCore ${{env.SOLUTION_FILE_PATH}} @build\scripts\msbuild-version.rsp | |
- name: Build-x64-Core | |
working-directory: ${{env.GITHUB_WORKSPACE}} | |
run: msbuild /r /v:m /p:Platform=x64 /p:Configuration=ReleaseCore ${{env.SOLUTION_FILE_PATH}} @build\scripts\msbuild-version.rsp | |
- name: Build-arm64-Core | |
working-directory: ${{env.GITHUB_WORKSPACE}} | |
run: msbuild /r /v:m /p:Platform=ARM64 /p:Configuration=ReleaseCore ${{env.SOLUTION_FILE_PATH}} /t:Library\SharpProj @build\scripts\msbuild-version.rsp | |
- name: VSTest-x86 | |
working-directory: ${{env.GITHUB_WORKSPACE}} | |
run: vstest.console.exe /InIsolation /Platform:x86 build/src/SharpProj.Tests/bin/x86/Release/SharpProj.Tests.dll "--testcasefilter:TestCategory!=NeedsNetwork" | |
- name: VSTest-x64 | |
working-directory: ${{env.GITHUB_WORKSPACE}} | |
run: vstest.console.exe /InIsolation /Platform:x64 build/src/SharpProj.Tests/bin/x64/Release/SharpProj.Tests.dll "--testcasefilter:TestCategory!=NeedsNetwork" | |
- name: VSTest-Core-x86 | |
working-directory: ${{env.GITHUB_WORKSPACE}} | |
run: vstest.console.exe /InIsolation /Platform:x86 build/src/SharpProj.Tests/bin/x86/ReleaseCore/SharpProj.Tests.dll "--testcasefilter:TestCategory!=NeedsNetwork" | |
- name: VSTest-Core-x64 | |
working-directory: ${{env.GITHUB_WORKSPACE}} | |
run: vstest.console.exe /InIsolation /Platform:x64 build/src/SharpProj.Tests/bin/x64/ReleaseCore/SharpProj.Tests.dll "--testcasefilter:TestCategory!=NeedsNetwork" | |
- name: Create nupkg files | |
working-directory: ${{env.GITHUB_WORKSPACE}} | |
run: cmd.exe /C build\scripts\gh-build-nuget.cmd | |
- name: Package nupkg files | |
uses: actions/upload-artifact@v2 | |
with: | |
name: nupkg-files | |
path: build/nuspec/bin/*.nupkg | |
- name: Package pdb files | |
uses: actions/upload-artifact@v2 | |
with: | |
name: pdb-files | |
path: | | |
build/src/SharpProj/bin/*/SharpProj.pdb | |
build/src/SharpProj.NetTopologySuite/bin/**/SharpProj.NetTopologySuite.pdb |