GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Build and validate the C# package without duplicated CI work · Issue #75 · Seddryck/Expressif.Syntax Closed Labels enhancementNew feature or request DescriptionContextThe current CI workflow validates the Tree-sitter corpus and the C# binding in separate jobs, then starts a new packaging job that restores and rebuilds the C# project. The release workflow separately builds native grammar libraries and creates the NuGet package. Refactor CI so that each node owns one responsibility, native libraries and managed assemblies are built once, and the resulting NuGet package is tested as a consumer would use it. Proposed workflow graphflowchart TD
S["Source checkout"] --> V["Calculate version"]
S --> P["Validate Tree-sitter grammar"]
P --> NW["Build win-x64 native library"]
P --> NL["Build linux-x64 native library"]
P --> A["Create native C source archive"]
V --> C["Build managed assemblies and create NuGet package"]
NW --> C
NL --> C
C --> TW["Consume NuGet package on Windows x64"]
C --> TL["Consume NuGet package on Linux x64"]
TW --> U["Collect validated artifacts"]
TL --> U
A --> U
U --> G["CI gate"]
Proposed responsibilitiesCalculate versionCalculate the repository version once and expose it to the packaging jobs. Validate Tree-sitter grammarRun the corpus tests as the grammar-level validation. This job owns grammar correctness and does not build distributable packages. Build native librariesBuild each supported native grammar library once on its target platform: Upload each native library as an artifact. Downstream jobs must consume these artifacts rather than compile the same native library again. Build the C# packageDownload the native artifacts, build the managed assemblies for every declared target framework, and create one NuGet package containing: Avoid recursively invoking Do not invoke Tree-sitter CLI from the managed build when precompiled native assets have been supplied. Validate the packaged C# bindingDownload the generated Each job must:
This validates the package layout, NuGet runtime asset selection, native loading, and managed API on every advertised runtime. Every runtime identifier included in the NuGet package must have a corresponding package-consumption test. Add another operating system or architecture only when CI can both build and execute the packaged binding there. Create the native C archiveCreate the portable parser source archive once and upload it as an artifact. This job does not compile the C# binding or recreate the NuGet package. Collect validated artifactsDownload the already-created NuGet package and native C archive and publish the combined workflow artifact. This job performs no compilation or packaging. CI gateExpose one stable branch-protection status that succeeds only when grammar validation, native builds, package creation, package-consumption tests, and artifact collection all succeed. Acceptance criteria
Activity
MetadataMetadataAssigneesLabelsenhancementNew feature or request TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |