Skip to content

Updating the build instructions #93

Updating the build instructions

Updating the build instructions #93

name: build
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
strategy:
matrix:
include:
- os: windows-latest
command: package-win32-x64
- os: windows-latest
command: package-win32-ia32
- os: windows-latest
command: package-win32-arm64
- os: ubuntu-latest
command: package-linux-x64
- os: ubuntu-latest
command: package-linux-arm64
- os: ubuntu-latest
command: package-linux-armhf
- os: ubuntu-latest
command: package-alpine-x64
- os: ubuntu-latest
command: package-alpine-arm64
- os: macos-latest
command: package-darwin-x64
- os: macos-latest
command: package-darwin-arm64
- os: ubuntu-latest
command: package-web
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
- name: Install dependencies
run: npm ci
- name: Generate Antlr lexer
run: npx antlr4ts -o "../src/_generated" "AntlrGlslLexer.g4"
working-directory: ./syntaxes
- name: Generate Antlr parser
run: npx antlr4ts -o "../src/_generated" -no-listener -visitor "AntlrGlslParser.g4"
working-directory: ./syntaxes
- name: ESLint
run: npm run eslint
- name: Markdownlint
run: npm run markdownlint
- name: Prettier lint
run: npm run prettier-lint
- name: Package
run: npm run ${{ matrix.command }}