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

Factor out build job logic into a "run-as-coder" reusable workflow. #205

Merged
merged 11 commits into from
Jul 14, 2023

Conversation

jrhemstad
Copy link
Collaborator

Description

closes #204

Factors out the logic for cloning the cccl repo into the /home/coder/cccl directory and executing a command as the coder user into a reusable workflow.

Checklist

  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

@jrhemstad jrhemstad requested a review from miscco July 11, 2023 21:37
@jrhemstad
Copy link
Collaborator Author

@miscco this will make #202 easier as now we can use the run-as-coder workflow in the NVRTC job directly.

image: ${{inputs.build_image}}
command: |
${{ inputs.build_script }} "${{inputs.compiler_exe}}" "${{inputs.std}}" "${{inputs.gpu_build_archs}}"

test:
needs: build
if: ${{ !cancelled() && ( needs.build.result == 'success' || needs.build.result == 'skipped' ) && inputs.test_script != '' && inputs.test_image != '' && inputs.run_tests}}
Copy link
Collaborator

Choose a reason for hiding this comment

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

No change requested.

I am wondering whether we could add another result to the build step, that checks whether we had a 100% sccache hit rate. In that case we can omit running the test step

Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe we can store it in an environment variable

@jrhemstad jrhemstad merged commit 80c769f into NVIDIA:main Jul 14, 2023
368 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

[FEA]: Factor out run-as-coder.yml reusable workflow
2 participants