mirror of https://github.com/c-ares/c-ares.git
Windows UWP (Store) support fix (#845)
Because AppVeyor's version of MSVC needed to be patched to build UWP applications: https://developercommunity.visualstudio.com/t/clexe-compiler-error-C1007-when-compili/10486219 We ended up disabling UWP builds in our CI environment. It turns out UWP support had broken in the meantime: https://github.com/microsoft/vcpkg/pull/40213 This PR fixes the build regression and also adds a GitHub action CI workflow for building the UWP app so we can catch this in the future. Fix By: Brad House (@bradh352)pull/846/head
parent
9377126687
commit
3fd5925adf
6 changed files with 60 additions and 7 deletions
@ -0,0 +1,29 @@ |
||||
# Copyright (C) The c-ares project and its contributors |
||||
# SPDX-License-Identifier: MIT |
||||
name: Windows UWP (Store) |
||||
on: |
||||
push: |
||||
pull_request: |
||||
|
||||
concurrency: |
||||
group: ${{ github.ref }}-uwp |
||||
cancel-in-progress: true |
||||
|
||||
jobs: |
||||
build: |
||||
runs-on: windows-latest |
||||
name: Windows UWP (Store) |
||||
steps: |
||||
- uses: ilammy/msvc-dev-cmd@v1 |
||||
with: |
||||
arch: x64 |
||||
uwp: true |
||||
- name: Checkout c-ares |
||||
uses: actions/checkout@v4 |
||||
- name: Build c-ares |
||||
run: | |
||||
mkdir build |
||||
cmake -DCARES_STATIC=ON -DCARES_STATIC_PIC=ON "-DCMAKE_SYSTEM_VERSION=10.0" -DCMAKE_SYSTEM_NAME=WindowsStore -A x64 -Bbuild |
||||
cmake --build build --config Debug |
||||
|
||||
# -DCMAKE_SYSTEM_VERSION=10.0 |
Loading…
Reference in new issue