fix function types and implement anonymous functions on C backend (#207) #392
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Generate baitjs | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
paths: | |
- 'cli/bait.bt' | |
- 'lib/**' | |
jobs: | |
gen-baitjs: | |
if: github.repository == 'bait-lang/bait' | |
runs-on: ubuntu-latest | |
env: | |
TIABEAST_BOT_TOKEN: ${{ secrets.TIABEAST_BOT_TOKEN }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18.x | |
- name: Build baitjs | |
run: | | |
./make.sh --no-self | |
- name: Generate, commit and push latest bait.js | |
id: genCommitPush | |
continue-on-error: true | |
run: ./bait run cli/tools/gen-baitjs.bt | |
- name: Attempt to generate baitjs on breaking change | |
if: steps.genCommitPush.outcome == 'failure' | |
run: node ~/.bait/baitjs/bait.js run cli/tools/gen-baitjs.bt |