Skip to content

Commit

Permalink
Static binary for flameshow
Browse files Browse the repository at this point in the history
  • Loading branch information
azat committed Dec 1, 2023
1 parent 5ac5d71 commit e3e47b5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/pre_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ jobs:

- name: Install dependencies
run: |
pip install PyOxidizer
# Stick to the 0.23.0 due to issue with static linking on 0.24.0 [1].
# [1]: https://github.com/indygreg/PyOxidizer/issues/673
pip install PyOxidizer=0.23.0
# nfpm
curl -sS -Lo /tmp/nfpm.deb "https://github.com/goreleaser/nfpm/releases/download/v2.25.0/nfpm_amd64.deb"
sudo dpkg -i /tmp/nfpm.deb
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ jobs:

- name: Install dependencies
run: |
pip install PyOxidizer
# Stick to the 0.23.0 due to issue with static linking on 0.24.0 [1].
# [1]: https://github.com/indygreg/PyOxidizer/issues/673
pip install PyOxidizer=0.23.0
# nfpm
curl -sS -Lo /tmp/nfpm.deb "https://github.com/goreleaser/nfpm/releases/download/v2.25.0/nfpm_amd64.deb"
sudo dpkg -i /tmp/nfpm.deb
Expand Down
7 changes: 1 addition & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,7 @@ endif

ifneq ($(target),)
cargo_build_opts += --target $(target)

# NOTE: right now PyOxidizer does not work with Musl, due to the following error:
# thread 'main' panicked at 'already borrowed: BorrowMutError', /home/azat/.cargo/registry/src/github.com-1ecc6299db9ec823/pyo3-0.17.3/src/gil.rs:433:45
# note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
#
# pyoxidizer_build_opts += --target-triple $(target)
pyoxidizer_build_opts += --target-triple $(target)
endif

.PHONY: build flameshow chdig install deb rpm archlinux packages
Expand Down

0 comments on commit e3e47b5

Please sign in to comment.