Skip to content

Build the examples against local YAMS sources instead of the YAMS vendordeps - #61

Merged
thenetworkgrinch merged 1 commit into
mainfrom
local-yams-examples
Oct 20, 2026
Merged

thenetworkgrinch merged 1 commit into
mainfrom
local-yams-examples

Conversation

@thenetworkgrinch

Copy link
Copy Markdown
Contributor

The examples now compile YAMS from its yams/java sources, as they already do for YAGSL's yagsl/java, instead of the published YAMS vendordeps. A YAGSL change can then be built and tested against an unreleased YAMS change.

  • Vendordeps: examples/commands2/vendordeps/yams_commands2.json and examples/commands3/vendordeps/yams_commands3.json are removed.
  • build.gradle: the YAGSL_TESTING block compiles ../../../YAMS/yams/java, a YAMS checkout beside this repository, as before, and now also ../../YAMS/yams/java, a checkout inside it. A source folder that doesn't exist is skipped.
  • Build Examples CI: checks out YAMS's default branch into YAMS/ before building each example.
  • Release: the examples are built the same way. When the YAGSL_TESTING block is stripped, the published yams_commands2.json or yams_commands3.json is downloaded into each example's vendordeps/, so released examples still use the YAMS vendordep.

The release builds against YAMS's default branch but ships the latest published YAMS vendordep. If YAMS's default branch has changes that aren't released yet, a released example could build in the release job and not against the published vendordep.

Tests: both examples compile against a local YAMS checkout.

@thenetworkgrinch
thenetworkgrinch merged commit 5c7f94f into main Oct 20, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant