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

Generate and check parser code on CI #83

Merged
merged 1 commit into from
Jan 6, 2023

Conversation

keynmol
Copy link
Collaborator

@keynmol keynmol commented Jan 6, 2023

This is to ensure that whatever parser.c is added to the PR is indeed generated from the grammar (because reviewing the generated code is not possible)

We only do it on linux because it OOMs on Windows, and takes a very long time on MacOS (and it's not strictly necessary)

- On Linux, we re-generate the parser code and make sure
  it matches up with what's committed
- On other platforms, we only run tests, because generation
  takes a very long time, and OOMs on Windows
@@ -10,15 +10,22 @@ jobs:
strategy:
fail-fast: true
matrix:
os: [macos-latest, ubuntu-latest, windows-2019]
os: [macos-latest, ubuntu-20.04, windows-2019]
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Drop down to 20.04 due to actions/runner-images#6709

@keynmol keynmol marked this pull request as ready for review January 6, 2023 10:13
Copy link
Collaborator

@eed3si9n eed3si9n left a comment

Choose a reason for hiding this comment

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

Thanks, @keynmol!

@ckipp01 ckipp01 merged commit 1b2ed44 into tree-sitter:master Jan 6, 2023
@keynmol keynmol deleted the generate-on-CI branch January 6, 2023 14:34
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.

3 participants