Skip to content

fix function types and implement anonymous functions on C backend (#207) #392

fix function types and implement anonymous functions on C backend (#207)

fix function types and implement anonymous functions on C backend (#207) #392

Workflow file for this run

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