|
51 | 51 | run: |
|
52 | 52 | Write-Host "Changed file(s): ${{ steps.changed-files.outputs.windows_all_changed_files }}"
|
53 | 53 |
|
54 |
| - windows-build-and-test: |
| 54 | + windows-get-or-build-dependencies: |
55 | 55 | if: needs.pre-job.outputs.should_skip != 'true'
|
56 | 56 | needs: pre-job
|
| 57 | + runs-on: windows-2022 |
| 58 | + steps: |
| 59 | + - run: | |
| 60 | + git config --system core.longpaths true |
| 61 | +
|
| 62 | + - uses: actions/checkout@v4 |
| 63 | + with: |
| 64 | + submodules: recursive |
| 65 | + fetch-depth: 0 |
| 66 | + |
| 67 | + - uses: ilammy/msvc-dev-cmd@v1 |
| 68 | + |
| 69 | + - name: Export GitHub Actions cache environment variables |
| 70 | + uses: actions/github-script@v7 |
| 71 | + with: |
| 72 | + script: | |
| 73 | + core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || ''); |
| 74 | + core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || ''); |
| 75 | +
|
| 76 | + - name: Acquire/Build Maplibre Native Core Dependencies |
| 77 | + env: |
| 78 | + CI: 1 |
| 79 | + VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite" |
| 80 | + timeout-minutes: 60 |
| 81 | + run: | |
| 82 | + & ${{ github.workspace }}\platform\windows\Get-VendorPackages.ps1 -Triplet ${{ env.VSCMD_ARG_TGT_ARCH }}-windows -Renderer All |
| 83 | +
|
| 84 | +
|
| 85 | + windows-build-and-test: |
| 86 | +# if: needs.pre-job.outputs.should_skip != 'true' |
| 87 | + needs: windows-get-or-build-dependencies |
57 | 88 | strategy:
|
58 | 89 | matrix:
|
59 | 90 | renderer: [opengl, egl, vulkan, osmesa]
|
@@ -98,12 +129,12 @@ jobs:
|
98 | 129 | env:
|
99 | 130 | CI: 1
|
100 | 131 | VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite"
|
101 |
| - VCPKG_KEEP_ENV_VARS: "CMAKE_CXX_COMPILER_LAUNCHER;CMAKE_C_COMPILER_LAUNCHER" |
| 132 | +# VCPKG_KEEP_ENV_VARS: "CMAKE_CXX_COMPILER_LAUNCHER;CMAKE_C_COMPILER_LAUNCHER" |
102 | 133 | CMAKE_C_COMPILER_LAUNCHER: "${{ env.SCCACHE_PATH }}"
|
103 | 134 | CMAKE_CXX_COMPILER_LAUNCHER: "${{ env.SCCACHE_PATH }}"
|
104 | 135 | RENDERER: "${{ matrix.renderer }}"
|
105 | 136 | RENDERING_MODE: "${{ matrix.rendering_mode }}"
|
106 |
| - timeout-minutes: 5 |
| 137 | + timeout-minutes: 60 |
107 | 138 | run: |
|
108 | 139 | cmake --version
|
109 | 140 | & ${{ github.workspace }}\.github\scripts\windows-ci_configure_wrapper.ps1
|
|
0 commit comments