Private
Public Access
1
0

fix: add build-essential/gcc for Rust linker
Some checks failed
CI/CD Pipeline / Code Format (push) Successful in 4s
CI/CD Pipeline / Clippy Lints (push) Successful in 54s
CI/CD Pipeline / Unit Tests (push) Successful in 49s
CI/CD Pipeline / Build Arch Package (push) Failing after 0s
CI/CD Pipeline / Build RPM Package (push) Failing after 0s
CI/CD Pipeline / Security Audit (push) Successful in 1m28s
CI/CD Pipeline / Build Debian Package (push) Failing after 8s
CI/CD Pipeline / Build Alpine Package (push) Failing after 3m2s

Rust compilation requires a C compiler (cc) for linking.
Act runner containers do not have gcc installed by default.

Added build-essential (Ubuntu), gcc (Fedora/Alpine/Arch)
to dependency installation steps before Rust compilation.
This commit is contained in:
2026-04-27 00:07:20 +00:00
parent 9cef189d57
commit 256238eae6

View File

@ -48,7 +48,7 @@ jobs:
- name: Install system dependencies - name: Install system dependencies
run: | run: |
sudo apt-get update sudo apt-get update
sudo apt-get install -y libsystemd-dev pkg-config sudo apt-get install -y build-essential libsystemd-dev pkg-config
- name: Run clippy - name: Run clippy
run: cargo clippy --all-targets --all-features -- -D warnings run: cargo clippy --all-targets --all-features -- -D warnings
@ -69,7 +69,7 @@ jobs:
- name: Install system dependencies - name: Install system dependencies
run: | run: |
sudo apt-get update sudo apt-get update
sudo apt-get install -y libsystemd-dev pkg-config sudo apt-get install -y build-essential libsystemd-dev pkg-config
- name: Run tests - name: Run tests
run: cargo test --all-features run: cargo test --all-features
@ -90,7 +90,7 @@ jobs:
- name: Install system dependencies - name: Install system dependencies
run: | run: |
sudo apt-get update sudo apt-get update
sudo apt-get install -y libsystemd-dev pkg-config sudo apt-get install -y build-essential libsystemd-dev pkg-config
- name: Run cargo-audit - name: Run cargo-audit
run: | run: |
cargo install cargo-audit cargo install cargo-audit
@ -143,7 +143,7 @@ jobs:
. "$HOME/.cargo/env" . "$HOME/.cargo/env"
echo "$HOME/.cargo/bin" >> "$GITHUB_PATH" echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
- name: Install build dependencies - name: Install build dependencies
run: sudo dnf install -y rpm-build gcc systemd-devel pkg-config sudo dnf install -y gcc rpm-build systemd-devel pkg-config
- name: Build release binary - name: Build release binary
run: cargo build --release run: cargo build --release
- name: Build RPM package - name: Build RPM package
@ -213,7 +213,7 @@ jobs:
. "$HOME/.cargo/env" . "$HOME/.cargo/env"
echo "$HOME/.cargo/bin" >> "$GITHUB_PATH" echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
- name: Install build dependencies - name: Install build dependencies
run: sudo pacman -Syu --noconfirm rust cargo systemd git base-devel sudo pacman -Syu --noconfirm rust cargo systemd git base-devel gcc
- name: Build release binary - name: Build release binary
run: cargo build --release run: cargo build --release
- name: Build Arch package - name: Build Arch package