Skip to content

Conversation

@ThierryBerger
Copy link

@ThierryBerger ThierryBerger commented Oct 14, 2025

Add script to download slang + make ci use it to compile and run tests.

This PR still uses dynamic linking ; static linking requires to download source from slang and compile it, (hence requiring all dev dependencies of slang, so it's a bit more involved)

@ThierryBerger ThierryBerger force-pushed the ci branch 9 times, most recently from 3cb648a to 033ef1b Compare October 14, 2025 18:24
@ThierryBerger ThierryBerger changed the title Add script to download slang + make ci use it. Add CI Oct 14, 2025
@ThierryBerger ThierryBerger force-pushed the ci branch 7 times, most recently from 2249cd3 to 432683e Compare October 14, 2025 19:03
Comment on lines 37 to 39
outputs:
slang-dir: ${{ steps.setup.outputs.slang-dir }} # Pass SLANG_DIR to dependent jobs
slang-cache-key: ${{ steps.setup.outputs.slang-cache-key }} # Pass SLANG_DIR to dependent jobs
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

using outputs is the wrong approach if we want to support matrices, as the output is overwritten for each matrix (see https://github.com/orgs/community/discussions/17245 for more in depth discussion).

different approaches:

  • preferred: we're not actually relying on a matrix here, as we only want to download slang, so drop the matrix, and download everything needed in 1 job.
  • OR have a different job (name) for each target, so we can use output (great to support compiling slang from CI)
  • OR do everything in the same job (not great for parallelization, but it's probably fine, and may end up saving total aggregated time.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I used a matrix to download slang, and another to test it.

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