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

Added release-test.yml github workflow script #80

Merged
merged 14 commits into from
Aug 12, 2023
Merged

Conversation

PrathumP
Copy link
Contributor

@PrathumP PrathumP commented Jul 2, 2023

- name: Replace file contents
run: |
# Replace ../src/main.roc with link to latest platform release
sed -i 's|../src/main.roc|https://github.com/roc-lang/roc/blob/main/examples/cli/cli-platform/main.roc|g' examples/**/*.roc
Copy link
Collaborator

Choose a reason for hiding this comment

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

Thanks for working on this @PrathumP :)
Note that github links like this one will not work with roc for security reasons, I expect that you will need to:

  1. use the github api to get the latest pre-release
  2. get all assets for that release
  3. get every file from the assets that is either a tar.br or a tar.gz and check which is the most recently created file
  4. and then replace the ../src/main.roc with the link to the file from the previous step

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Got it. I've made a PR but I'm not sure about the changes so please let me know what else needs to be done or corrected.

@Anton-4
Copy link
Collaborator

Anton-4 commented Jul 4, 2023

The args example failure is a strange one, I'm going to come back to it later.

@Anton-4
Copy link
Collaborator

Anton-4 commented Jul 5, 2023

For reference, I've made an issue for the args failure (#82). It also occurs in earlier releases.

@Anton-4

This comment was marked as outdated.

@Anton-4 Anton-4 merged commit 5a873f3 into roc-lang:main Aug 12, 2023
1 check passed
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