Skip to content

Commit d5959bb

Browse files
authored
Replace flameshow+pyoxidizer with flamelens (written in Rust) (#78)
Finally, no more complex build system anymore! And now the binary size is ~19MiB instead of 100MiB! Fixes: #75
2 parents 2b9a5e7 + 1d838fe commit d5959bb

File tree

17 files changed

+304
-1144
lines changed

17 files changed

+304
-1144
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ jobs:
2020
- uses: Swatinem/rust-cache@v2
2121
with:
2222
cache-on-failure: true
23-
- name: Install dependencies
24-
run: pip install PyOxidizer
2523
- name: cargo check
2624
run: cargo check
2725
- name: cargo clippy
@@ -53,9 +51,6 @@ jobs:
5351

5452
- name: Install dependencies
5553
run: |
56-
# Stick to the 0.23.0 due to issue with static linking on 0.24.0 [1].
57-
# [1]: https://github.com/indygreg/PyOxidizer/issues/673
58-
pip install PyOxidizer==0.23.0
5954
# nfpm
6055
curl -sS -Lo /tmp/nfpm.deb "https://github.com/goreleaser/nfpm/releases/download/v2.25.0/nfpm_amd64.deb"
6156
sudo dpkg -i /tmp/nfpm.deb
@@ -86,7 +81,7 @@ jobs:
8681
chdig --help
8782
8883
- name: Archive Linux packages
89-
uses: actions/upload-artifact@v3
84+
uses: actions/upload-artifact@v4
9085
with:
9186
name: linux-packages
9287
path: |
@@ -115,7 +110,7 @@ jobs:
115110
116111
build-macos-x86_64:
117112
name: Build MacOS (x86_64)
118-
runs-on: macos-12
113+
runs-on: macos-13
119114

120115
steps:
121116
- uses: actions/checkout@v3
@@ -142,10 +137,6 @@ jobs:
142137
# SDKs versions
143138
ls -al /Library/Developer/CommandLineTools/SDKs/
144139
145-
- name: Install dependencies
146-
run: |
147-
pip3 install PyOxidizer
148-
149140
- name: Build
150141
run: |
151142
set -x
@@ -159,7 +150,7 @@ jobs:
159150
./chdig-macos-x86_64 --help
160151
161152
- name: Archive MacOS x86_64 packages
162-
uses: actions/upload-artifact@v3
153+
uses: actions/upload-artifact@v4
163154
with:
164155
name: macos-packages-x86_64
165156
path: |
@@ -194,10 +185,6 @@ jobs:
194185
# SDKs versions
195186
ls -al /Library/Developer/CommandLineTools/SDKs/
196187
197-
- name: Install dependencies
198-
run: |
199-
pip3 install PyOxidizer --break-system-packages
200-
201188
- name: Build
202189
run: |
203190
set -x
@@ -211,7 +198,7 @@ jobs:
211198
./chdig-macos-arm64 --help
212199
213200
- name: Archive MacOS Arm64 packages
214-
uses: actions/upload-artifact@v3
201+
uses: actions/upload-artifact@v4
215202
with:
216203
name: macos-packages-arm64
217204
path: |
@@ -241,18 +228,14 @@ jobs:
241228
with:
242229
cache-on-failure: true
243230

244-
- name: Install dependencies
245-
run: |
246-
pip3 install PyOxidizer
247-
248231
- name: Build
249232
run: |
250233
make deploy-binary
251234
cp target/chdig.exe chdig-windows.exe
252235
Compress-Archive -Path chdig-windows.exe -DestinationPath chdig-windows.exe.zip
253236
254237
- name: Archive Windows packages
255-
uses: actions/upload-artifact@v3
238+
uses: actions/upload-artifact@v4
256239
with:
257240
name: windows-packages
258241
path: |

.github/workflows/pre_release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222

2323
steps:
2424
- name: Download artifacts
25-
uses: actions/download-artifact@v3
25+
uses: actions/download-artifact@v4
2626
- uses: "marvinpinto/action-automatic-releases@latest"
2727
with:
2828
repo_token: "${{ secrets.GITHUB_TOKEN }}"

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222

2323
steps:
2424
- name: Download artifacts
25-
uses: actions/download-artifact@v3
25+
uses: actions/download-artifact@v4
2626
- uses: "marvinpinto/action-automatic-releases@latest"
2727
with:
2828
repo_token: "${{ secrets.GITHUB_TOKEN }}"

.gitignore

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
# cargo
22
target
33
/vendor
4-
# PyOxidizer
5-
build
6-
tcl
7-
stdlib
8-
packed-resources
9-
*.a
104
# distribution
115
dist
126
# packages

0 commit comments

Comments
 (0)