Skip to content
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

Run CI tests with arc/orc in addition to default GC #79

Closed
wants to merge 2 commits into from
Closed

Run CI tests with arc/orc in addition to default GC #79

wants to merge 2 commits into from

Conversation

haxscramper
Copy link
Contributor

Right now all fusion tests pass with orc/arc enabled (with #77 pattern matching passes too), but I think it is necessary to also test compilation with non-default GC.

@haxscramper
Copy link
Contributor Author

haxscramper commented Mar 10, 2021

Green for 1.0 - for all other requires #77 to be merged in order to fix #76

run: nimble test
run: |
nimble test
if [[ '${{ matrix.branch }}' != 'version-1-0' ]]; then
Copy link
Member

@timotheecour timotheecour Mar 12, 2021

Choose a reason for hiding this comment

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

move this logic inside nim/nimble.
the less logic the pipeline does the better (eg for portability etc)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't know how to do this - if I understand correctly matrix.branch is not an environment variable but a context that is substituted by GitHub CI.

Also, this would require writing a custom test target (which either checks for the environment somehow, or tries to determine the current version of the compiler and runs tests based on that).

Copy link
Member

@timotheecour timotheecour Mar 25, 2021

Choose a reason for hiding this comment

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

in fusion.nimble add this:

task testMulti, "":
  # see also `testTask()` to call task `test`
  exec "nimble test"
  when (NimMajor, NimMinor) >= (1, 2):
    exec "nimble test --gc:arc"
    exec "nimble test --gc:orc"

and here call nimble testMulti

that way, nim CI important_packages could (if it desired) call nimble testMulti to reuse the logic instead of re-implementing 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.

None yet

2 participants