Skip to content

Commit

Permalink
gzexe compression (#12)
Browse files Browse the repository at this point in the history
---------
Signed-off-by: Prabhu Subramanian <prabhu@appthreat.com>
  • Loading branch information
prabhu authored Jul 28, 2023
1 parent dc052a8 commit cdfc22e
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 7 deletions.
23 changes: 22 additions & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: pr

on: pull_request
on:
pull_request:
workflow_dispatch:

jobs:
build:
Expand All @@ -21,3 +23,22 @@ jobs:
tag: v2.1.5-procursus6
- name: Build
run: yarn install
- 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: 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
ls -lh
./astgen-linux --version
mv astgen-linux~ astgen-linux-uncompressed
mv astgen-linux-arm~ astgen-linux-arm-uncompressed
6 changes: 6 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ jobs:
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 @@ -68,3 +72,5 @@ jobs:
astgen-macos-arm
astgen-linux
astgen-linux-arm
astgen-linux-uncompressed
astgen-linux-arm-uncompressed
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,14 @@ dist
.idea/
test/obj
astgen-linux-x64
astgen-linux-x64~
astgen-macos-arm64
astgen-macos-x64
astgen-win-x64.exe
astgen-linux
astgen-linux~
astgen-linux-arm64
astgen-linux-arm64~
astgen-macos-arm
astgen-macos
astgen-win.exe
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@joernio/astgen",
"version": "3.1.0",
"version": "3.2.0",
"description": "Generate JS/TS AST in json format with Babel",
"exports": "./index.js",
"keywords": [
Expand All @@ -14,7 +14,7 @@
"author": "Max Leuthaeuser",
"license": "Apache-2.0",
"dependencies": {
"@babel/parser": "^7.22.4",
"@babel/parser": "^7.22.5",
"typescript": "^5.1.3",
"yargs": "^17.7.2"
},
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@
resolved "https://registry.npmjs.org/@babel/parser/-/parser-7.18.4.tgz"
integrity sha512-FDge0dFazETFcxGw/EXzOkN8uJp0PC7Qbm+Pe9T+av2zlBpOgunFHkQPPn+eRuClU73JF+98D531UgayY89tow==

"@babel/parser@^7.22.4":
version "7.22.4"
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.22.4.tgz#a770e98fd785c231af9d93f6459d36770993fb32"
integrity sha512-VLLsx06XkEYqBtE5YGPwfSGwfrjnyPP5oiGty3S8pQLFDFLaS8VwWSIxkTXpcvr5zeYLE6+MBNl2npl/YnfofA==
"@babel/parser@^7.22.5":
version "7.22.5"
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.22.5.tgz#721fd042f3ce1896238cf1b341c77eb7dee7dbea"
integrity sha512-DFZMC9LJUG9PLOclRC32G63UXwzqS2koQC8dkx+PLdmt1xSePYpbT/NbsrJy8Q/muXz7o/h/d4A7Fuyixm559Q==

"@babel/types@7.19.0", "@babel/types@^7.18.2":
version "7.19.0"
Expand Down

0 comments on commit cdfc22e

Please sign in to comment.