Skip to content

Commit

Permalink
TS rewrite (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
max-leuthaeuser authored Nov 18, 2024
1 parent b254d39 commit dcd1aa2
Show file tree
Hide file tree
Showing 16 changed files with 1,504 additions and 1,412 deletions.
24 changes: 17 additions & 7 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: '0'
- name: Install node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'yarn'
Expand All @@ -22,23 +22,33 @@ 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
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 gzexe
run: |
gzexe astgen-linux
gzexe astgen-linux-arm
gzexe astgen-macos
gzexe astgen-macos-arm
gzexe astgen-win.exe
- name: Make executable
run: |
chmod +x astgen-macos
chmod +x astgen-macos-arm
chmod +x astgen-linux
chmod +x astgen-linux-arm
gzexe astgen-linux
gzexe astgen-linux-arm
- name: Print stats
run: |
ls -lh
- name: Print version
run: |
./astgen-linux --version
mv astgen-linux~ astgen-linux-uncompressed
mv astgen-linux-arm~ astgen-linux-arm-uncompressed
22 changes: 13 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: '0'
- name: Install node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'yarn'
Expand All @@ -38,24 +38,30 @@ 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
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 gzexe
run: |
gzexe astgen-linux
gzexe astgen-linux-arm
gzexe astgen-macos
gzexe astgen-macos-arm
gzexe astgen-win.exe
- name: Make executable
run: |
chmod +x astgen-macos
chmod +x astgen-macos-arm
chmod +x astgen-linux
chmod +x astgen-linux-arm
gzexe astgen-linux
gzexe astgen-linux-arm
mv astgen-linux~ astgen-linux-uncompressed
mv astgen-linux-arm~ astgen-linux-arm-uncompressed
- name: Set next release version
id: taggerFinal
uses: anothrNick/github-tag-action@1.61.0
Expand All @@ -72,5 +78,3 @@ jobs:
astgen-macos-arm
astgen-linux
astgen-linux-arm
astgen-linux-uncompressed
astgen-linux-arm-uncompressed
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
input
# Logs
logs
*.log
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
Loading

0 comments on commit dcd1aa2

Please sign in to comment.