Skip to content

Commit

Permalink
Try static builds
Browse files Browse the repository at this point in the history
  • Loading branch information
osa1 committed Nov 12, 2023
1 parent 7db35c4 commit 092b6a4
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,3 +109,39 @@ jobs:
run: |
cargo test --no-default-features \
--features "tls-native desktop-notifications"
# Updating dependencies can break the static build.
Linux_static_build_default:
name: Make statically linked executable (default)
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2

- name: Install native dependencies
run: |
sudo apt-get update
sudo apt-get install libdbus-1-dev pkg-config libssl-dev \
musl musl-dev musl-tools
- name: Make statically linked executable
run: |
RUST_BACKTRACE=1 \
cargo build --release --verbose --target=x86_64-unknown-linux-musl
Linux_static_build_desktop_notifications:
name: Make statically linked executable (desktop notifications)
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2

- name: Install native dependencies
run: |
sudo apt-get update
sudo apt-get install libdbus-1-dev pkg-config libssl-dev \
musl musl-dev musl-tools
- name: Make statically linked executable
run: |
RUST_BACKTRACE=1 \
cargo build --release --verbose --target=x86_64-unknown-linux-musl \
--features=desktop-notifications

0 comments on commit 092b6a4

Please sign in to comment.