Skip to content

Commit

Permalink
Updating the CI pipeline to generate code from the DSHL ANTLR grammar
Browse files Browse the repository at this point in the history
  • Loading branch information
zalan-racz-gaijin committed Feb 20, 2024
1 parent ebdc662 commit 4ae3120
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,18 @@ jobs:
- name: Install dependencies for the language server
run: npm ci
working-directory: ./Dagor-Shader-Language-Server
- name: Generate ANTLR lexer
- name: Generate condition ANTLR lexer
run: npx antlr4ts -o "../../src/_generated" "ConditionLexer.g4"
working-directory: ./Dagor-Shader-Language-Server/grammar/antlr
- name: Generate ANTLR parser
- name: Generate condition ANTLR parser
run: npx antlr4ts -o "../../src/_generated" -no-listener -visitor "ConditionParser.g4"
working-directory: ./Dagor-Shader-Language-Server/grammar/antlr
- name: Generate DSHL ANTLR lexer
run: npx antlr4ts -o "../../src/_generated" "DshlLexer.g4"
working-directory: ./Dagor-Shader-Language-Server/grammar/antlr
- name: Generate DSHL ANTLR parser
run: npx antlr4ts -o "../../src/_generated" -no-listener -visitor "DshlParser.g4"
working-directory: ./Dagor-Shader-Language-Server/grammar/antlr
- name: Build
run: npm run build
- name: Build the tests
Expand Down
2 changes: 1 addition & 1 deletion Dagor-Shader-Language-Server

0 comments on commit 4ae3120

Please sign in to comment.