The Swift Package Index logo.Swift Package Index

Build Information

Successful build of XGrammar, reference 0.1.0 (e0f2de), with Swift 6.2 for Linux on 7 Apr 2026 18:05:47 UTC.

Swift 6 data race errors: 0

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.69.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/mattt/swift-xgrammar.git
Reference: 0.1.0
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/mattt/swift-xgrammar
 * tag               0.1.0      -> FETCH_HEAD
HEAD is now at e0f2de3 Add CI workflow (#1)
Cloned https://github.com/mattt/swift-xgrammar.git
Revision (git rev-parse @):
e0f2de361aa4891dbca5113629bc90ab8e5c3888
SUCCESS checkout https://github.com/mattt/swift-xgrammar.git at 0.1.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.2
Building package at path:  $PWD
https://github.com/mattt/swift-xgrammar.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.2-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:0ddb100795e64f71518020a73ad8441aeb43832ede7f1202ae7f8de93664f90d
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:basic-6.2-latest
Building for debugging...
[0/21] Write sources
[1/21] Write swift-version-24593BA9C3E375BF.txt
[2/21] Compiling Cxgrammar bridging.cc
[3/21] Compiling recursion_guard.cc
[4/21] Compiling config.cc
[5/21] Compiling testing.cc
[6/21] Compiling logging.cc
[7/21] Compiling earley_parser.cc
[8/21] Compiling regex_converter.cc
[9/21] Compiling tokenizer_info.cc
[10/21] Compiling grammar.cc
[11/21] Compiling compiled_grammar.cc
[12/21] Compiling structural_tag.cc
[13/21] Compiling grammar_printer.cc
[14/21] Compiling json_schema_converter.cc
[15/21] Compiling grammar_parser.cc
[16/21] Compiling grammar_matcher.cc
[17/21] Compiling grammar_functor.cc
[18/21] Compiling fsm_builder.cc
[19/21] Compiling grammar_compiler.cc
[20/21] Compiling fsm.cc
[22/29] Compiling XGrammar Matcher.swift
[23/30] Compiling XGrammar Bridging.swift
[24/30] Emitting module XGrammar
[25/30] Compiling XGrammar Compiler.swift
[26/30] Compiling XGrammar Configuration.swift
[27/30] Compiling XGrammar TokenizerInfo.swift
[28/30] Compiling XGrammar Errors.swift
[29/30] Compiling XGrammar Formatting.swift
[30/30] Compiling XGrammar Grammar.swift
Build complete! (34.53s)
Build complete.
{
  "cxx_language_standard" : "c++17",
  "dependencies" : [
  ],
  "manifest_display_name" : "XGrammar",
  "name" : "XGrammar",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "13.0"
    },
    {
      "name" : "ios",
      "version" : "16.0"
    },
    {
      "name" : "tvos",
      "version" : "16.0"
    },
    {
      "name" : "watchos",
      "version" : "9.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    }
  ],
  "products" : [
    {
      "name" : "XGrammar",
      "targets" : [
        "XGrammar"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "XGrammarTests",
      "module_type" : "SwiftTarget",
      "name" : "XGrammarTests",
      "path" : "Tests/XGrammarTests",
      "sources" : [
        "CompilerTests.swift",
        "ConfigurationTests.swift",
        "ErrorTests.swift",
        "GrammarCompositionTests.swift",
        "GrammarTests.swift",
        "Helpers.swift",
        "JSONSchemaTests.swift",
        "MatcherTests.swift",
        "RegexGrammarTests.swift",
        "StructuralTagTests.swift",
        "TokenBitmaskTests.swift",
        "TokenizerInfoTests.swift"
      ],
      "target_dependencies" : [
        "XGrammar"
      ],
      "type" : "test"
    },
    {
      "c99name" : "XGrammar",
      "module_type" : "SwiftTarget",
      "name" : "XGrammar",
      "path" : "Sources/XGrammar",
      "product_memberships" : [
        "XGrammar"
      ],
      "sources" : [
        "Bridging.swift",
        "Compiler.swift",
        "Configuration.swift",
        "Errors.swift",
        "Formatting.swift",
        "Grammar.swift",
        "Matcher.swift",
        "TokenizerInfo.swift"
      ],
      "target_dependencies" : [
        "Cxgrammar"
      ],
      "type" : "library"
    },
    {
      "c99name" : "Cxgrammar",
      "module_type" : "ClangTarget",
      "name" : "Cxgrammar",
      "path" : "Sources/Cxgrammar",
      "product_memberships" : [
        "XGrammar"
      ],
      "sources" : [
        "bridging.cc",
        "cpp/compiled_grammar.cc",
        "cpp/config.cc",
        "cpp/earley_parser.cc",
        "cpp/fsm.cc",
        "cpp/fsm_builder.cc",
        "cpp/grammar.cc",
        "cpp/grammar_compiler.cc",
        "cpp/grammar_functor.cc",
        "cpp/grammar_matcher.cc",
        "cpp/grammar_parser.cc",
        "cpp/grammar_printer.cc",
        "cpp/json_schema_converter.cc",
        "cpp/regex_converter.cc",
        "cpp/structural_tag.cc",
        "cpp/support/logging.cc",
        "cpp/support/recursion_guard.cc",
        "cpp/testing.cc",
        "cpp/tokenizer_info.cc"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "6.0"
}
basic-6.2-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:0ddb100795e64f71518020a73ad8441aeb43832ede7f1202ae7f8de93664f90d
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:basic-6.2-latest
Done.