Skip to content

Commit

Permalink
Configure job for bun toolkit
Browse files Browse the repository at this point in the history
  • Loading branch information
daohoangson committed Sep 15, 2023
1 parent 1adc702 commit cab57fa
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/demo_parser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,25 @@ on:
- master

jobs:
bun:
runs-on: ubuntu-latest
defaults:
run:
working-directory: demo/parser

steps:
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
with:
submodules: recursive
- name: Setup Bun
uses: oven-sh/setup-bun@a1800f471a0bc25cddac36bb13e6f436ddf341d7 # v1
- run: bun install

- run: npm run bun:build
- run: ./bin/cli --debug -- hanoi

- run: npm run bun:run -- --debug -- hanoi

deno:
runs-on: ubuntu-latest
defaults:
Expand Down
2 changes: 2 additions & 0 deletions demo/parser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
"scripts": {
"build:api": "rollup --config ./api/rollup.config.mjs",
"build:bin": "rollup --config ./bin/rollup.config.mjs",
"bun:build": "bun build --compile --outfile bin/cli bin/cli.ts",
"bun:run": "bun run bin/cli.ts",
"deno:compile": "deno compile --node-modules-dir=false --output bin/cli bin/cli.ts",
"deno:run": "deno run --node-modules-dir=false bin/cli.ts",
"format": "prettier --write '**/*.{mjs,js,json,ts}'",
Expand Down

0 comments on commit cab57fa

Please sign in to comment.