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

Persist Build Files Across Workflow Runs #4

Open
jrvollmer opened this issue Oct 23, 2023 · 0 comments
Open

Persist Build Files Across Workflow Runs #4

jrvollmer opened this issue Oct 23, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@jrvollmer
Copy link
Member

jrvollmer commented Oct 23, 2023

  • Checkout the repository to a directory under the runner workspace that matches the PR's branch name (i.e. </path/to/workspace>/<branch-name>). Then, don't clean cmake_build/ between workflow runs. This way, compilation time can be reduced while keeping separate copies of the repo for each branch.
  • On merge, delete the checked out repository from the runner's workspace
  • On PR approval, clean cmake_build/ and rerun. While the PR is approved, clean cmake_build/ on every workflow run
    • The second part might be unnecessary since checks are required to pass and approvals have to be given on the most recent commit, which should change in the event that the checks failed, reran, and were successful the second time.
@jrvollmer jrvollmer added the enhancement New feature or request label Oct 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant