From 2d33973b5f731a21a3c5921c73545e322becf225 Mon Sep 17 00:00:00 2001 From: Draco Lunaris <331325+Draco-Lunaris@users.noreply.github.com> Date: Sun, 31 May 2026 15:11:31 -0500 Subject: [PATCH] Merge pull request #6 from Draco-Lunaris/fix/ci-deps Co-authored-by: Echo Dev --- .github/workflows/ci.yml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 42e9419..c267cbe 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -112,6 +112,8 @@ jobs: runs-on: [self-hosted, linux, ubuntu-24.04] steps: - uses: actions/checkout@v4 + - name: Install system dependencies + run: sudo apt-get update && sudo apt-get install -y build-essential libsystemd-dev pkg-config libssl-dev - name: Add Rust to PATH run: echo "$HOME/.cargo/bin" >> "$GITHUB_PATH" - name: Build .deb package @@ -134,6 +136,8 @@ jobs: runs-on: [self-hosted, linux, ubuntu-22.04] steps: - uses: actions/checkout@v4 + - name: Install system dependencies + run: sudo apt-get update && sudo apt-get install -y build-essential libsystemd-dev pkg-config libssl-dev - name: Add Rust to PATH run: echo "$HOME/.cargo/bin" >> "$GITHUB_PATH" - name: Build .deb package @@ -156,6 +160,8 @@ jobs: runs-on: [self-hosted, linux, debian-13] steps: - uses: actions/checkout@v4 + - name: Install system dependencies + run: sudo apt-get update && sudo apt-get install -y build-essential libsystemd-dev pkg-config libssl-dev - name: Add Rust to PATH run: echo "$HOME/.cargo/bin" >> "$GITHUB_PATH" - name: Build .deb package @@ -178,6 +184,8 @@ jobs: runs-on: [self-hosted, linux, fedora] steps: - uses: actions/checkout@v4 + - name: Install system dependencies + run: sudo dnf install -y systemd-devel openssl-devel pkg-config gcc make - name: Add Rust to PATH run: echo "$HOME/.cargo/bin" >> "$GITHUB_PATH" - name: Build release binary @@ -196,6 +204,8 @@ jobs: runs-on: [self-hosted, linux, almalinux-10] steps: - uses: actions/checkout@v4 + - name: Install system dependencies + run: sudo dnf install -y systemd-devel openssl-devel pkg-config gcc make - name: Add Rust to PATH run: echo "$HOME/.cargo/bin" >> "$GITHUB_PATH" - name: Build release binary @@ -214,6 +224,8 @@ jobs: runs-on: [self-hosted, linux, arch] steps: - uses: actions/checkout@v4 + - name: Install system dependencies + run: sudo pacman -Syu --noconfirm systemd openssl pkg-config gcc - name: Add Rust to PATH run: echo "$HOME/.cargo/bin" >> "$GITHUB_PATH" - name: Build release binary @@ -237,7 +249,13 @@ jobs: run: apk add --no-cache bash git curl tar - uses: actions/checkout@v4 - name: Install Alpine build dependencies - run: apk add --no-cache gcc musl-dev openssl-dev openssl elogind-dev alpine-sdk rust cargo abuild + run: apk add --no-cache gcc musl-dev openssl-dev openssl elogind-dev alpine-sdk abuild + - name: Install Rust via rustup + run: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y + - name: Add Rust to PATH + run: echo "$HOME/.cargo/bin" >> "$GITHUB_PATH" + - name: Add musl target + run: rustup target add x86_64-unknown-linux-musl - name: Build release binary (musl target) run: cargo build --release --target x86_64-unknown-linux-musl - name: Build Alpine package