diff --git a/.github/workflows/build_test.yml b/.github/workflows/build_test.yml index dfaa9be28..252ef2567 100644 --- a/.github/workflows/build_test.yml +++ b/.github/workflows/build_test.yml @@ -17,6 +17,7 @@ jobs: NUGET_REGISTRY: https://nuget.pkg.github.com/mapnik/index.json NUGET_USERNAME: mapnik USE_MEMORY_MAPPED_FILE: 'ON' + BUILD_SHARED: true secrets: NUGET_REGISTRY_PAT: ${{ secrets.VCPKG_CACHE_PAT }} @@ -28,6 +29,19 @@ jobs: NUGET_REGISTRY: https://nuget.pkg.github.com/mapnik/index.json NUGET_USERNAME: mapnik USE_MEMORY_MAPPED_FILE: 'OFF' + BUILD_SHARED: true + secrets: + NUGET_REGISTRY_PAT: ${{ secrets.VCPKG_CACHE_PAT }} + + windows-static: + name: Windows static + uses: ./.github/workflows/windows.yml + with: + VCPKG_SHA: f6af75acc923c833a5620943e3fc7d5e4930f0df + NUGET_REGISTRY: https://nuget.pkg.github.com/mapnik/index.json + NUGET_USERNAME: mapnik + USE_MEMORY_MAPPED_FILE: 'ON' + BUILD_SHARED: false secrets: NUGET_REGISTRY_PAT: ${{ secrets.VCPKG_CACHE_PAT }} @@ -39,6 +53,7 @@ jobs: NUGET_REGISTRY: https://nuget.pkg.github.com/mapnik/index.json NUGET_USERNAME: mapnik USE_MEMORY_MAPPED_FILE: 'ON' + BUILD_SHARED: true secrets: NUGET_REGISTRY_PAT: ${{ secrets.VCPKG_CACHE_PAT }} @@ -50,6 +65,19 @@ jobs: NUGET_REGISTRY: https://nuget.pkg.github.com/mapnik/index.json NUGET_USERNAME: mapnik USE_MEMORY_MAPPED_FILE: 'OFF' + BUILD_SHARED: true + secrets: + NUGET_REGISTRY_PAT: ${{ secrets.VCPKG_CACHE_PAT }} + + ubuntu-static: + name: Linux static + uses: ./.github/workflows/ubuntu.yml + with: + VCPKG_SHA: f6af75acc923c833a5620943e3fc7d5e4930f0df + NUGET_REGISTRY: https://nuget.pkg.github.com/mapnik/index.json + NUGET_USERNAME: mapnik + USE_MEMORY_MAPPED_FILE: 'ON' + BUILD_SHARED: false secrets: NUGET_REGISTRY_PAT: ${{ secrets.VCPKG_CACHE_PAT }} @@ -61,6 +89,7 @@ jobs: NUGET_REGISTRY: https://nuget.pkg.github.com/mapnik/index.json NUGET_USERNAME: mapnik USE_MEMORY_MAPPED_FILE: 'ON' + BUILD_SHARED: true secrets: NUGET_REGISTRY_PAT: ${{ secrets.VCPKG_CACHE_PAT }} @@ -72,5 +101,18 @@ jobs: NUGET_REGISTRY: https://nuget.pkg.github.com/mapnik/index.json NUGET_USERNAME: mapnik USE_MEMORY_MAPPED_FILE: 'OFF' + BUILD_SHARED: true + secrets: + NUGET_REGISTRY_PAT: ${{ secrets.VCPKG_CACHE_PAT }} + + macos-static: + name: MacOS static + uses: ./.github/workflows/macos.yml + with: + VCPKG_SHA: f6af75acc923c833a5620943e3fc7d5e4930f0df + NUGET_REGISTRY: https://nuget.pkg.github.com/mapnik/index.json + NUGET_USERNAME: mapnik + USE_MEMORY_MAPPED_FILE: 'ON' + BUILD_SHARED: false secrets: NUGET_REGISTRY_PAT: ${{ secrets.VCPKG_CACHE_PAT }} diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 092d10c45..244d95870 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -15,6 +15,9 @@ on: USE_MEMORY_MAPPED_FILE: required: true type: string + BUILD_SHARED: + required: true + type: boolean secrets: NUGET_REGISTRY_PAT: required: true @@ -89,7 +92,7 @@ jobs: setapikey "${{ secrets.GITHUB_TOKEN }}" -Source "${{ inputs.NUGET_REGISTRY }}" - name: Configure CMake - run: cmake -DUSE_MEMORY_MAPPED_FILE=${{ inputs.USE_MEMORY_MAPPED_FILE }} --preset=${{ env.preset }} + run: cmake -DUSE_MEMORY_MAPPED_FILE=${{ inputs.USE_MEMORY_MAPPED_FILE }} -DBUILD_SHARED_LIBS=${{ inputs.BUILD_SHARED }} --preset=${{ env.preset }} - name: Build run: cmake --build --preset ${{ env.preset }} diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index 7035afda7..2877bc643 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -15,6 +15,9 @@ on: USE_MEMORY_MAPPED_FILE: required: true type: string + BUILD_SHARED: + required: true + type: boolean secrets: NUGET_REGISTRY_PAT: required: true @@ -105,7 +108,7 @@ jobs: setapikey "${{ secrets.GITHUB_TOKEN }}" -Source "${{ inputs.NUGET_REGISTRY }}" - name: Configure CMake - run: cmake -DUSE_MEMORY_MAPPED_FILE=${{ inputs.USE_MEMORY_MAPPED_FILE }} --preset=${{ env.preset }} + run: cmake -DUSE_MEMORY_MAPPED_FILE=${{ inputs.USE_MEMORY_MAPPED_FILE }} -DBUILD_SHARED_LIBS=${{ inputs.BUILD_SHARED }} --preset=${{ env.preset }} - name: Build run: cmake --build --preset ${{ env.preset }} diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 2ad229ddf..b35324b12 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -15,6 +15,9 @@ on: USE_MEMORY_MAPPED_FILE: required: true type: string + BUILD_SHARED: + required: true + type: boolean secrets: NUGET_REGISTRY_PAT: required: true @@ -91,7 +94,7 @@ jobs: setapikey "${{ secrets.GITHUB_TOKEN }}" -Source "${{ inputs.NUGET_REGISTRY }}" - name: Configure CMake - run: cmake -DUSE_MEMORY_MAPPED_FILE=${{ inputs.USE_MEMORY_MAPPED_FILE }} --preset ${{env.preset}} + run: cmake -DUSE_MEMORY_MAPPED_FILE=${{ inputs.USE_MEMORY_MAPPED_FILE }} -DBUILD_SHARED_LIBS=${{ inputs.BUILD_SHARED }} --preset ${{env.preset}} - name: Build run: cmake --build --preset ${{env.preset}}