Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
max-leuthaeuser committed Nov 18, 2024
1 parent 888b2d1 commit a5e5e28
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ jobs:
with:
tag: v2.1.5-procursus6
- name: Build
run: yarn install
run: |
yarn install
yarn build
yarn binary
- name: Rename
run: |
mv astgen-linux-x64 astgen-linux
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ jobs:
run: |
echo "The current tag is: ${{ steps.taggerDryRun.outputs.tag }}"
- name: Build
run: yarn install
run: |
yarn install
yarn build
yarn binary
- name: Rename
run: |
mv astgen-linux-x64 astgen-linux
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ Type maps are generated using the Typescript compiler / type checker API.

```bash
yarn install
yarn build
yarn binary
```

This will invoke `pgk` after `yarn install` and generates a native binary for Windows, MacOS, and Linux.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
},
"scripts": {
"build": "tsc --build",
"postinstall": "pkg . --options max-old-space-size=8192 --no-bytecode --no-native-build --public --compress GZip --targets node18-linux-x64,node18-linux-arm64,node18-macos-x64,node18-win-x64,node18-macos-arm64"
"binary": "pkg . --options max-old-space-size=8192 --no-bytecode --no-native-build --public --compress GZip --targets node18-linux-x64,node18-linux-arm64,node18-macos-x64,node18-win-x64,node18-macos-arm64"
},
"engines": {
"node": ">=16.0.0"
Expand Down

0 comments on commit a5e5e28

Please sign in to comment.