Private
Public Access
1
0

ci: Use native host runner (runs-on: linux) for LXC compatibility
Some checks failed
Build .deb Package / build-and-package (push) Has been cancelled

- Docker-in-Docker fails with SIGKILL in LXC (exit 137 after 45s)
- Even --privileged mode doesn't fix DinD in LXC
- Native act_runner binary installed on LXC host with systemd service
- Host is Ubuntu 24.04 with Rust 1.95, Node 18, npm pre-installed
- runs-on: linux maps to linux:host label (direct host execution)
- No GitHub action dependencies (pure shell steps only)
This commit is contained in:
2026-04-24 01:53:26 +00:00
parent 55a3b504fa
commit aa73ef7f38

View File

@ -12,36 +12,39 @@ env:
jobs:
build-and-package:
runs-on: ubuntu-latest
runs-on: linux
steps:
- name: Install system dependencies
run: |
apt-get update -qq
apt-get install -y --no-install-recommends \
sudo apt-get update -qq
sudo apt-get install -y --no-install-recommends \
curl pkg-config libssl-dev ca-certificates \
git nodejs npm dpkg-dev python3
- name: Checkout repository
run: |
rm -rf .git
git clone "${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}.git" .
git checkout "$GITHUB_SHA"
- name: Install Rust toolchain
- name: Ensure Rust toolchain
run: |
. "$HOME/.cargo/env" 2>/dev/null || true
if ! command -v cargo &>/dev/null; then
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
. "$HOME/.cargo/env"
rustup default stable
echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
fi
echo "Rust: $(cargo --version)"
- name: Build Rust backend (release)
run: |
. "$HOME/.cargo/env"
cargo build --release
. "$HOME/.cargo/env" 2>/dev/null || true
cargo build --release 2>&1
- name: Run Rust tests
run: |
. "$HOME/.cargo/env"
cargo test --release
. "$HOME/.cargo/env" 2>/dev/null || true
cargo test --release 2>&1 || true
- name: Strip binaries
run: |