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

GitHub Actions: on self-hosted runners, we need to check if Julia is available in the PATH, and install it if needed #429

Merged
merged 1 commit into from
Jun 20, 2022

Conversation

DilumAluthge
Copy link
Member

  1. On GitHub-hosted runners, we know that they will always have Julia pre-installed. Therefore, the which julia step will always succeed, and so we will never spend any time install Julia on GitHub-hosted runners.
  2. On self-hosted runners, which julia will fail every time, so we will run the setup-julia action every time. However, this does not mean that we need to spend time installing Julia every time. The first time, the toolcache (e.g. /runner/_work/_tool) will be cold, so we will need to download and install Julia. But every subsequent time that we run the setup-julia action, the toolcache will be warm, and so running the setup-julia action will essentially be a no-op.

…available in the `PATH`, and install it if needed
@DilumAluthge
Copy link
Member Author

bors merge

@bors bors bot merged commit 627dfe5 into master Jun 20, 2022
@bors bors bot deleted the dpa/self-hosted-runners-check-julia-in-path branch June 20, 2022 11:21
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