Coder Social home page Coder Social logo

stephensmitchell-forks / swift-windows-gha Goto Github PK

View Code? Open in Web Editor NEW

This project forked from readdle/swift-windows-gha

0.0 1.0 0.0 499 KB

Swift for Windows build helper tool. Also a regular Toolchain and SDK snapshots (master and 5.3 branches).

License: MIT License

CMake 5.85% Batchfile 94.15%

swift-windows-gha's Introduction

Swift Toolchain and SDK Build Tool

Build Status Build Status Build Status

Swift on Windows Based on //swift/build project

Project Goals

Swift is a large project consisting of many parts. When it comes to changing or investigate something located in, for example, Swift Foundation library, it is crucial to have quick and robust way to rebuild only that part.

The goals of this project are to:

  • Provide a tool to build and experiment with Swift (Toolchain and SDK) on Windows in convenient way on local developer machine
  • Provide binary snapshots of dev and release versions of vanilla Swift, as well as customized version by Readdle
  • Provide convenient code/script blocks to integrate Swift build process in arbitrary CI/CD flow

Requirements

Getting Started

  1. Run elevated Command Prompt. Elevation is required to install clang modules into Visual Studio directory. If you somehow omit this step (e.g. by commenting corresponding script line), elevation is not needed, but make sure you have modues installed already (either manually, or by previous build tool run).
  2. Clone this repository (e.g. to C:\swift-windows-gha) and CD into it. Note: don't put it deeply into directory structure, or you will probably get build errors due to file path length restrictions.
  3. Run scripts\configure.cmd.
  4. Answer to all questions with defaults by pressing Enter.
  5. Run scripts\build.cmd.

Just toolchain alone contains more than 5000 sources to build, so be patient. Build takes about 40 minutes on 3.2GHz 8-core CPU, more than a hour on VM under MacBook Pro 2017, and about 6 hours on GitHub Actions cloud agent.

In the end you will get Library folder at the default output path, which contains all built products as well as some intermediates.

Coming Soon...

  • Build process details
  • Build configuration options
  • How-To: Working on SDK
  • Troubleshooting

swift-windows-gha's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.