[CI] add static builds
This commit is contained in:
parent
503fe35817
commit
25012517aa
4 changed files with 54 additions and 3 deletions
42
.github/workflows/build_test.yml
vendored
42
.github/workflows/build_test.yml
vendored
|
@ -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 }}
|
||||
|
|
5
.github/workflows/macos.yml
vendored
5
.github/workflows/macos.yml
vendored
|
@ -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 }}
|
||||
|
|
5
.github/workflows/ubuntu.yml
vendored
5
.github/workflows/ubuntu.yml
vendored
|
@ -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 }}
|
||||
|
|
5
.github/workflows/windows.yml
vendored
5
.github/workflows/windows.yml
vendored
|
@ -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}}
|
||||
|
|
Loading…
Reference in a new issue