Skip to content

Add swift toolchain header file on CI to build runtime part on CI #104

Closed

Description

@Kyle-Ye

Possible 1:

  1. Clone the swiftlang/swift and swiftlang/llvm repo.
  2. Specify a configuration to make a header-only build. (Only produce the def and header file, skip the actual .o build)
  3. Update some scripts to make the CI build's OPENGRAPH_SWIFT_TOOLCHAIN_PATH variable points to the toolchain dir.

Possible 2:

  1. Generate the necessary header for macOS, iOS, Linux locally and then store the headers in another git repo. (Update it when new Swift version is released)
  2. Clone the toolchain header repo
  3. Update some scripts to make the CI build's OPENGRAPH_SWIFT_TOOLCHAIN_PATH variable points to the toolchain dir.

Activity

  1. added
    good first issue
    help wanted
    on May 11, 2025
  2. Kyle-Ye commented on May 11, 2025

    @Kyle-Ye
    MemberAuthor

    I'd love to see the SwiftUI diffing and rendering tools on other platforms, is there any way I can help?

    Hi @Lancelotbronner, this is an easy and help wanted one for contributing to OpenGraph.

    If you want try it or need some help, feel free to comment below.

  3. Lancelotbronner commented on May 29, 2025

    @Lancelotbronner

    I don't know much about CIs but I can start learning!

  4. Kyle-Ye commented on Nov 24, 2025

    @Kyle-Ye
    MemberAuthor

    Would you be interested on this? @jcmosc Maybe we can share a common workflow job with Compute here.

    eg.

    - name: Setup Xcode
      uses: OpenSwiftUIProject/OpenSwiftUI/.github/actions/setup-xcode@main
      with:
        xcode-version: ${{ matrix.xcode-version }}
    
  5. jcmosc commented on Nov 27, 2025

    @jcmosc
    Contributor

    @Kyle-Ye Yes a common job to pull in an artifact repo would be perfect

  6. jcmosc commented on Jan 13, 2026

    @jcmosc
    Contributor

    @Kyle-Ye I recently got this working on Compute's repo. I don't think OpenAttributeGraph would have any different requirements.

    The only thing that needs to be built is CMakeConfig.h, which just defines SWIFT_VERSION_MAJOR and SWIFT_VERSION_MINOR. I ended up just writing it out manually, which means I didn't have to build anything.

    You can see the GitHub action here:
    https://github.com/jcmosc/Compute/blob/main/.github/actions/checkout-swift-headers/action.yml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issuehelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions