Skip to content

Commit

Permalink
Reduce static and VS Code build sizes
Browse files Browse the repository at this point in the history
CLI executable:

 OS            | Before  | After   | Change
---------------+---------+---------+--------
 Linux x86_64  | 1050944 |  905296 | -14%
 macOS x86_64  | 1909728 | 1909728 |   0%
 Windows x86   | 3680584 | 2092558 | -43%
 Windows x64   | 4184935 | 1985536 | -53%
 Windows ARM   | 1329664 |  954368 | -28%
 Windows ARM64 | 1422848 | 1054208 | -26%

VS Code extension (.node file):

 OS           | Before  | After   | Change
--------------+---------+---------+--------
 darwin-arm64 |  644088 |  557784 | -13%
 darwin-x64   | 1007024 |  818544 | -19%
 linux-arm    |  648752 |  489736 | -25%
 linux-arm64  |  940416 |  767768 | -18%
 linux-x64    |  977752 |  825624 | -16%
 win32-arm    | 1201664 |  802304 | -33%
 win32-arm64  | 1294336 |  901120 | -30%
 win32-ia32   | 3351833 | 1778702 | -47%
 win32-x64    | 3862872 | 1684480 | -56%
  • Loading branch information
strager committed Apr 9, 2022
1 parent 61bc436 commit afe4d05
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-test-plugin-vscode.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
- name: C++ build
run: cmake --build build --config Release --target quick-lint-js-vscode-node quick-lint-js-vscode-node-licenses
- name: C++ install
run: cmake --install build --component vscode-node --prefix plugin/vscode
run: cmake --install build --component vscode-node --prefix plugin/vscode --strip

- name: JS configure
if: ${{ matrix.os.test }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
if: ${{ matrix.toolchain.test }}
run: cd build && ctest --build-config Release --verbose
- name: install
run: cmake --install build --prefix usr
run: cmake --install build --prefix usr --strip

- name: bundle build into .tar.gz
if: ${{ matrix.toolchain.archive_extension == '.tar.gz' }}
Expand Down

0 comments on commit afe4d05

Please sign in to comment.