Skip to content

Commit cdfc22e

Browse files
authored
gzexe compression (#12)
--------- Signed-off-by: Prabhu Subramanian <[email protected]>
1 parent dc052a8 commit cdfc22e

File tree

5 files changed

+37
-7
lines changed

5 files changed

+37
-7
lines changed

.github/workflows/pr.yml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: pr
22

3-
on: pull_request
3+
on:
4+
pull_request:
5+
workflow_dispatch:
46

57
jobs:
68
build:
@@ -21,3 +23,22 @@ jobs:
2123
tag: v2.1.5-procursus6
2224
- name: Build
2325
run: yarn install
26+
- name: Rename
27+
run: |
28+
mv astgen-linux-x64 astgen-linux
29+
mv astgen-linux-arm64 astgen-linux-arm
30+
mv astgen-macos-x64 astgen-macos
31+
mv astgen-macos-arm64 astgen-macos-arm
32+
mv astgen-win-x64.exe astgen-win.exe
33+
- name: Make executable
34+
run: |
35+
chmod +x astgen-macos
36+
chmod +x astgen-macos-arm
37+
chmod +x astgen-linux
38+
chmod +x astgen-linux-arm
39+
gzexe astgen-linux
40+
gzexe astgen-linux-arm
41+
ls -lh
42+
./astgen-linux --version
43+
mv astgen-linux~ astgen-linux-uncompressed
44+
mv astgen-linux-arm~ astgen-linux-arm-uncompressed

.github/workflows/release.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ jobs:
5252
chmod +x astgen-macos-arm
5353
chmod +x astgen-linux
5454
chmod +x astgen-linux-arm
55+
gzexe astgen-linux
56+
gzexe astgen-linux-arm
57+
mv astgen-linux~ astgen-linux-uncompressed
58+
mv astgen-linux-arm~ astgen-linux-arm-uncompressed
5559
- name: Set next release version
5660
id: taggerFinal
5761
uses: anothrNick/[email protected]
@@ -68,3 +72,5 @@ jobs:
6872
astgen-macos-arm
6973
astgen-linux
7074
astgen-linux-arm
75+
astgen-linux-uncompressed
76+
astgen-linux-arm-uncompressed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,14 @@ dist
110110
.idea/
111111
test/obj
112112
astgen-linux-x64
113+
astgen-linux-x64~
113114
astgen-macos-arm64
114115
astgen-macos-x64
115116
astgen-win-x64.exe
116117
astgen-linux
118+
astgen-linux~
117119
astgen-linux-arm64
120+
astgen-linux-arm64~
118121
astgen-macos-arm
119122
astgen-macos
120123
astgen-win.exe

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@joernio/astgen",
3-
"version": "3.1.0",
3+
"version": "3.2.0",
44
"description": "Generate JS/TS AST in json format with Babel",
55
"exports": "./index.js",
66
"keywords": [
@@ -14,7 +14,7 @@
1414
"author": "Max Leuthaeuser",
1515
"license": "Apache-2.0",
1616
"dependencies": {
17-
"@babel/parser": "^7.22.4",
17+
"@babel/parser": "^7.22.5",
1818
"typescript": "^5.1.3",
1919
"yargs": "^17.7.2"
2020
},

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@
2626
resolved "https://registry.npmjs.org/@babel/parser/-/parser-7.18.4.tgz"
2727
integrity sha512-FDge0dFazETFcxGw/EXzOkN8uJp0PC7Qbm+Pe9T+av2zlBpOgunFHkQPPn+eRuClU73JF+98D531UgayY89tow==
2828

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

3434
"@babel/[email protected]", "@babel/types@^7.18.2":
3535
version "7.19.0"

0 commit comments

Comments
 (0)