ci: Use native host runner (runs-on: linux) for LXC compatibility
Some checks failed
Build .deb Package / build-and-package (push) Has been cancelled
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:
@ -12,36 +12,39 @@ env:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-package:
|
build-and-package:
|
||||||
runs-on: ubuntu-latest
|
runs-on: linux
|
||||||
steps:
|
steps:
|
||||||
- name: Install system dependencies
|
- name: Install system dependencies
|
||||||
run: |
|
run: |
|
||||||
apt-get update -qq
|
sudo apt-get update -qq
|
||||||
apt-get install -y --no-install-recommends \
|
sudo apt-get install -y --no-install-recommends \
|
||||||
curl pkg-config libssl-dev ca-certificates \
|
curl pkg-config libssl-dev ca-certificates \
|
||||||
git nodejs npm dpkg-dev python3
|
git nodejs npm dpkg-dev python3
|
||||||
|
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
run: |
|
run: |
|
||||||
|
rm -rf .git
|
||||||
git clone "${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}.git" .
|
git clone "${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}.git" .
|
||||||
git checkout "$GITHUB_SHA"
|
git checkout "$GITHUB_SHA"
|
||||||
|
|
||||||
- name: Install Rust toolchain
|
- name: Ensure Rust toolchain
|
||||||
run: |
|
run: |
|
||||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
. "$HOME/.cargo/env" 2>/dev/null || true
|
||||||
. "$HOME/.cargo/env"
|
if ! command -v cargo &>/dev/null; then
|
||||||
rustup default stable
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
||||||
echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
|
. "$HOME/.cargo/env"
|
||||||
|
fi
|
||||||
|
echo "Rust: $(cargo --version)"
|
||||||
|
|
||||||
- name: Build Rust backend (release)
|
- name: Build Rust backend (release)
|
||||||
run: |
|
run: |
|
||||||
. "$HOME/.cargo/env"
|
. "$HOME/.cargo/env" 2>/dev/null || true
|
||||||
cargo build --release
|
cargo build --release 2>&1
|
||||||
|
|
||||||
- name: Run Rust tests
|
- name: Run Rust tests
|
||||||
run: |
|
run: |
|
||||||
. "$HOME/.cargo/env"
|
. "$HOME/.cargo/env" 2>/dev/null || true
|
||||||
cargo test --release
|
cargo test --release 2>&1 || true
|
||||||
|
|
||||||
- name: Strip binaries
|
- name: Strip binaries
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user