-
Notifications
You must be signed in to change notification settings - Fork 1
Add CI #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Add CI #2
Conversation
3cb648a to
033ef1b
Compare
2249cd3 to
432683e
Compare
.github/workflows/ci.yaml
Outdated
| 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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
… changing slang dir name
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)