ci: Use host runner to avoid Docker-in-Docker issues
Some checks failed
Build .deb Package / build-and-package (push) Failing after 0s
Some checks failed
Build .deb Package / build-and-package (push) Failing after 0s
- Change runs-on from ubuntu-latest to linux (maps to linux:host) - Remove container: directive that caused SIGKILL on sibling containers - Run directly on LXC host which is already Ubuntu - Add sudo for apt-get commands on host - Check for existing cargo before installing Rust
This commit is contained in:
@ -12,14 +12,12 @@ env:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-package:
|
build-and-package:
|
||||||
runs-on: ubuntu-latest
|
runs-on: linux
|
||||||
container:
|
|
||||||
image: ubuntu:24.04
|
|
||||||
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
|
||||||
|
|
||||||
@ -30,19 +28,20 @@ jobs:
|
|||||||
|
|
||||||
- name: Install Rust toolchain
|
- name: Install Rust toolchain
|
||||||
run: |
|
run: |
|
||||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
if ! command -v cargo &>/dev/null; then
|
||||||
. "$HOME/.cargo/env"
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
||||||
rustup default stable
|
. "$HOME/.cargo/env"
|
||||||
echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
|
echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
|
||||||
|
fi
|
||||||
|
|
||||||
- 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
|
||||||
|
|
||||||
- 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
|
||||||
|
|
||||||
- name: Strip binaries
|
- name: Strip binaries
|
||||||
|
|||||||
Reference in New Issue
Block a user