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

Create CI.yml #51

Merged
merged 27 commits into from Oct 23, 2022
Merged

Create CI.yml #51

merged 27 commits into from Oct 23, 2022

Conversation

simonbyrne
Copy link
Member

No description provided.

@ViralBShah ViralBShah closed this Oct 20, 2022
@ViralBShah ViralBShah reopened this Oct 20, 2022
@simonbyrne
Copy link
Member Author

I think I found that the image wasn't stable enough to use a pre-generated key. We would need to switch to https://reference.wolfram.com/language/ref/CreateLicenseEntitlement.html

@simonbyrne
Copy link
Member Author

From someone I contacted at Wolfram:

On-demand licensing indeed works well for CI environments where machine IDs are not fixed. You may find it helpful to review the README.md and code in this repository, which gives an example of on-demand licensing with GitHub Actions: https://github.com/WolframResearch/WL-FunctionCompile-CI-Template

In general, the steps are:

  1. Create a license entitlement to use with your workload (this code is copied from section 3 in the aforementioned README.md; see there for explanations of the options):
In[1]:= entitlement = CreateLicenseEntitlement[<|
    "StandardKernelLimit" -> 6, 
    "LicenseExpiration" -> Quantity[1, "Hours"], 
    "EntitlementExpiration" -> Quantity[1, "Years"]
|>]
  1. Copy the entitlement ID (string like "O-XXXX-XXXXXXXXX") and add it to your GitHub repository as an encrypted secret for GitHub Actions: https://docs.github.com/en/actions/reference/encrypted-secrets

3a. When starting the Wolfram Engine kernel using WolframScript, supply the entitlement ID through either the WOLRAMSCRIPT_ENTITLEMENTID environment variable or the -entitlement command-line flag, like:

wolframscript -entitlement O-XXXX-XXXXXXXXX

3b. When starting the kernel using the WolframKernel executable directly, supply the following command-line options:

WolframKernel -entitlement O-XXXX-XXXXXXXXX -pwfile '![cloudlm.wolfram.com](http://cloudlm.wolfram.com/)'

Alternatively, you can pre-set these flags for WolframKernel using the WOLFRAMINIT environment variable:

WOLFRAMINIT=-entitlement O-XXXX-XXXXXXXXX -pwfile '![cloudlm.wolfram.com](http://cloudlm.wolfram.com/)'

@codecov-commenter
Copy link

Codecov Report

❗ No coverage uploaded for pull request base (master@ad8a57e). Click here to learn what that means.
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff            @@
##             master      #51   +/-   ##
=========================================
  Coverage          ?   71.52%           
=========================================
  Files             ?        8           
  Lines             ?      446           
  Branches          ?        0           
=========================================
  Hits              ?      319           
  Misses            ?      127           
  Partials          ?        0           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@simonbyrne simonbyrne merged commit 8982f7a into master Oct 23, 2022
@simonbyrne simonbyrne deleted the sb/github-actions branch October 23, 2022 21:18
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

3 participants