CoreOffice / XMLCoder

Easy XML parsing using Codable protocols in Swift
https://coreoffice.github.io/XMLCoder/
MIT License
800 stars 112 forks source link

Add CMake build system #140

Closed GunGraveKoga closed 3 years ago

GunGraveKoga commented 5 years ago

CMake 3.15.0+ support Swift targets On Windows CMake the only way to build a Swift project for now

MaxDesiatov commented 5 years ago

@GunGraveKoga do I understand correctly that adding a CI job to test a Windows build on Azure Pipelines is not viable at the moment? Is this blocked by any of the Windows changes not merged to Swift master yet or something else?

GunGraveKoga commented 5 years ago

@MaxDesiatov as I know, main problem is a Developer Tools, which would work right out of box, like macOS and Linux Toolchains, which includes Swift toolchain and SDK (Foundation/Dispatch .etc) I download Windows toolchain (Swift compiler and SDK) build artifacts manualy, but You can try to workaround this with PowerShell script https://github.com/compnerd/windows-swift/blob/master/utilities/Download-SwiftArtifacts.ps1 But I didn't use it else... Any way CMake build system should work properly for macOS and Linux too

GunGraveKoga commented 5 years ago

You could check https://dev.azure.com/compnerd/windows-swift for more information and build status. As I know there is no an other public build-bot for Swift with available build artifacts. I am not good with CI-things, sorry

MaxDesiatov commented 3 years ago

As far as I know, latest development snapshots of Swift for Windows do support SwiftPM. I'm happy to accept a PR that sets up a CI workflow for that on GitHub Actions, but I'll have to close this one unfortunately.