TeamsPeach desktop client: Electron UI, Rust core bridge, TS6 stream viewer, CI
This commit is contained in:
commit
7287fdb63e
94 files changed
+33133
No files matched your search
@@ -0,0 +1,109 @@
|
||||
# Continuous integration on the self-hosted Gitea runner (Linux x64 container jobs).
|
||||
# Everything runs inside the job container; nothing is installed on the runner host.
|
||||
name: ci
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
linux-x64:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: node:22-bookworm
|
||||
env:
|
||||
CARGO_TERM_COLOR: never
|
||||
CARGO_BUILD_JOBS: "2"
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: System packages (container only)
|
||||
run: |
|
||||
apt-get update
|
||||
apt-get install -y --no-install-recommends build-essential cmake curl ca-certificates git \
|
||||
xvfb xauth libnss3 libatk1.0-0 libatk-bridge2.0-0 libcups2 libdrm2 libgbm1 libgtk-3-0 \
|
||||
libasound2 libxss1 libxshmfence1 libxkbcommon0 libxcomposite1 libxdamage1 libxrandr2 libpango-1.0-0
|
||||
|
||||
- name: Rust toolchain
|
||||
run: |
|
||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain stable
|
||||
echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
|
||||
|
||||
- name: glibc baseline
|
||||
run: ldd --version | head -n1
|
||||
|
||||
- name: Node dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: Unit tests (desktop)
|
||||
run: npm test
|
||||
|
||||
- name: Core tests
|
||||
run: cargo test --manifest-path core/Cargo.toml --locked
|
||||
|
||||
- name: Core release build
|
||||
run: cargo build --manifest-path core/Cargo.toml --release --locked
|
||||
|
||||
- name: Core binary architecture
|
||||
run: node scripts/binary-arch.mjs core/target/release/teamspeach-core --expect linux-x64
|
||||
|
||||
- name: Core identity smoke (stdio, offline)
|
||||
run: node scripts/core-smoke.mjs core/target/release/teamspeach-core
|
||||
|
||||
- name: Electron UI smoke (Xvfb, offline, disposable profile)
|
||||
env:
|
||||
TEAMSPEACH_SMOKE_EXTRA_ARGS: --no-sandbox
|
||||
run: xvfb-run -a node scripts/smoke-ui.mjs --out smoke-out
|
||||
|
||||
- name: Upload smoke evidence
|
||||
if: always()
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: ci-smoke-linux-x64
|
||||
path: smoke-out/
|
||||
if-no-files-found: ignore
|
||||
|
||||
linux-arm64-cross:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: node:22-bookworm
|
||||
env:
|
||||
CARGO_TERM_COLOR: never
|
||||
CARGO_BUILD_JOBS: "2"
|
||||
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER: aarch64-linux-gnu-gcc
|
||||
CC_aarch64_unknown_linux_gnu: aarch64-linux-gnu-gcc
|
||||
CXX_aarch64_unknown_linux_gnu: aarch64-linux-gnu-g++
|
||||
AR_aarch64_unknown_linux_gnu: aarch64-linux-gnu-ar
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Cross toolchain and user-mode emulator (container only, no binfmt)
|
||||
run: |
|
||||
apt-get update
|
||||
apt-get install -y --no-install-recommends build-essential cmake curl ca-certificates git \
|
||||
gcc-aarch64-linux-gnu g++-aarch64-linux-gnu libc6-dev-arm64-cross qemu-user
|
||||
|
||||
- name: Rust toolchain
|
||||
run: |
|
||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain stable --target aarch64-unknown-linux-gnu
|
||||
echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
|
||||
|
||||
- name: Core cross build (aarch64-unknown-linux-gnu)
|
||||
run: cargo build --manifest-path core/Cargo.toml --release --locked --target aarch64-unknown-linux-gnu
|
||||
|
||||
- name: Core binary architecture
|
||||
run: node scripts/binary-arch.mjs core/target/aarch64-unknown-linux-gnu/release/teamspeach-core --expect linux-arm64
|
||||
|
||||
- name: Required glibc symbols
|
||||
run: aarch64-linux-gnu-objdump -T core/target/aarch64-unknown-linux-gnu/release/teamspeach-core | grep -o 'GLIBC_[0-9.]*' | sort -Vu | tail -n1
|
||||
|
||||
- name: 16 KiB page compatibility (Asahi) of the core ELF
|
||||
run: node scripts/elf-pagesize.mjs core/target/aarch64-unknown-linux-gnu/release/teamspeach-core --page 16384
|
||||
|
||||
- name: Core identity smoke under qemu-aarch64 (emulated, not native hardware)
|
||||
run: node scripts/core-smoke.mjs core/target/aarch64-unknown-linux-gnu/release/teamspeach-core --wrapper "qemu-aarch64 -L /usr/aarch64-linux-gnu"
|
||||
Reference in new issue
Block a user