Skip to content

Commit 2b416e2

Browse files
committed
fix
1 parent 59a2c78 commit 2b416e2

1 file changed

Lines changed: 14 additions & 18 deletions

File tree

.github/workflows/10-pipeline-build-deb-package.yml

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ jobs:
1515
- name: Install system dependencies
1616
run: |
1717
sudo apt-get update
18-
sudo apt-get install -y musl-tools pkg-config libssl-dev
18+
sudo apt-get install -y \
19+
pkg-config \
20+
libssl-dev \
21+
build-essential \
22+
debhelper-compat
1923
2024
- name: Install Rust (rustup)
2125
uses: actions-rs/toolchain@v1
@@ -24,34 +28,26 @@ jobs:
2428
override: true
2529
components: rustfmt
2630

27-
- name: Add musl target
31+
- name: Build release binary (glibc)
2832
run: |
29-
rustup target add x86_64-unknown-linux-musl
30-
31-
- name: Build static binary (musl)
32-
run: |
33-
cd proxsnap && cargo build --release --target x86_64-unknown-linux-musl
33+
cd proxsnap
34+
cargo build --release
3435
3536
- name: Extract version from Cargo.toml
3637
id: version
3738
run: |
38-
VERSION=$(grep '^version' Cargo.toml | head -n1 | cut -d '"' -f2)
39+
VERSION=$(grep '^version' proxsnap/Cargo.toml | head -n1 | cut -d '"' -f2)
3940
echo "version=$VERSION" >> $GITHUB_OUTPUT
4041
4142
- name: Build Debian package
4243
run: |
43-
PKG=proxsnap
44-
VERSION=${{ steps.version.outputs.version }}
45-
ARCH=amd64
46-
sudo apt-get update &&\
47-
sudo apt-get -y install build-essential debhelper-compat rustc cargo &&\
48-
dpkg-buildpackage &&\
49-
mkdir package &&\
50-
mv ../*.deb package/ &&\
51-
echo 'OK: Debian package successfully created.'
44+
dpkg-buildpackage -us -uc
45+
mkdir -p package
46+
mv ../*.deb package/
47+
echo "OK: Debian package successfully created."
5248
5349
- name: Upload Debian package artifact
5450
uses: actions/upload-artifact@v4
5551
with:
5652
name: proxsnap-deb
57-
path: package/*.deb
53+
path: package/*.deb

0 commit comments

Comments
 (0)