Skip to content

Switch to bun for binary generation #57

Switch to bun for binary generation

Switch to bun for binary generation #57

Workflow file for this run

name: pr
on:
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: '0'
- name: Install node
uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'yarn'
- name: Build
run: |
yarn install
yarn build
- name: Test
run: |
yarn test
- name: Create Binaries
run: |
yarn binary
- name: Rename
run: |
mv astgen-linux-x64 astgen-linux
mv astgen-linux-arm64 astgen-linux-arm
mv astgen-macos-x64 astgen-macos
mv astgen-macos-arm64 astgen-macos-arm
mv astgen-win-x64.exe astgen-win.exe
- name: Run UPX
uses: crazy-max/ghaction-upx@v3
with:
version: latest
files: |
astgen-*
args: -fq
- name: Make executable
run: |
chmod +x astgen-macos
chmod +x astgen-macos-arm
chmod +x astgen-linux
chmod +x astgen-linux-arm
- name: Print stats
run: |
ls -lh
- name: Print version
run: |
./astgen-linux --version