CI: fast checks only; packages are built by a release workflow

ci.yml (pushes to main, PRs) now runs only the quick checks: fmt +
clippy, the Linux tests (Xvfb), clippy for Windows (MSVC) and for
Android, cargo-deny, the notices check, and the TS3/TS6 smoke and
browser interop tests. It skips documentation-only changes (except
THIRD_PARTY_NOTICES.md, which is compiled in) and can be called by
other workflows.

The new release.yml builds the packages: on a v* tag it runs the same
checks (through ci.yml) plus the Windows tests and every package job
(Linux .tar.gz/.deb for the app and tsgw, Windows zip + installer,
Flatpak, Android APKs, the tsgw image) and attaches them with
SHA256SUMS to a draft release; run by hand it only uploads the
packages as artifacts. docker.yml runs on tags and by hand instead of
on PRs, pushes and weekly.

scripts/own-crates.sh also recognizes crates/proto with Windows path
separators, so Windows clippy covers our crates only (checked locally
with clippy for x86_64-pc-windows-gnu: clean). Docs follow.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
This commit is contained in:
Claude committed 2026-09-26 22:14:25 +00:00
1 parent f7ada91fcd
commit ede6901d5e
11 files changed
+336 -243

No files matched your search

+36 -180
View File
@@ -1,12 +1,29 @@
name: CI
# Fast checks on every push to main and every PR: lint, tests, license and
# advisory checks, and the integration tests against TS3/TS6 servers.
# Packages are built only by release.yml (tags, or by hand), which also runs
# these checks through workflow_call.
# Changes to documentation only need no build (same list twice: no YAML
# anchors in workflows). THIRD_PARTY_NOTICES.md is compiled into the app
# (About page) and checked below.
on:
push:
branches: [main, master]
# A version tag also publishes the packages as a draft release (release job).
tags: ["v*"]
paths:
- "**"
- "!docs/**"
- "!**/*.md"
- "THIRD_PARTY_NOTICES.md"
pull_request:
paths:
- "**"
- "!docs/**"
- "!**/*.md"
- "THIRD_PARTY_NOTICES.md"
workflow_dispatch:
workflow_call:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
@@ -36,13 +53,11 @@ jobs:
- name: clippy (workspace, report only)
run: cargo clippy --workspace --all-targets
# Under Xvfb, so X11 tests (screen capture, global hotkeys through XTEST
# input) run instead of skipping. Windows tests run in release.yml.
test:
name: test (${{ matrix.os }})
strategy:
fail-fast: false
matrix:
os: [ubuntu-24.04, windows-2025]
runs-on: ${{ matrix.os }}
name: test (Linux)
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/system-deps
@@ -51,43 +66,12 @@ jobs:
- uses: Swatinem/rust-cache@v2
- name: Build
run: cargo build --workspace --all-targets --locked
# Under Xvfb, so X11 tests (screen capture, global hotkeys through
# XTEST input) run instead of skipping.
- name: Test (Linux, Xvfb)
if: runner.os == 'Linux'
run: xvfb-run -a bash -c 'VOELIN_X11_TEST_DISPLAY="$DISPLAY" cargo test --workspace --locked'
- name: Test
if: runner.os != 'Linux'
run: cargo test --workspace --locked
run: xvfb-run -a bash -c 'VOELIN_X11_TEST_DISPLAY="$DISPLAY" cargo test --workspace --locked'
# Packages for every platform (docs/building.md), made by scripts/package.sh
# like the Docker builds in docker/; each job uploads them as an artifact.
package-linux:
name: package (Linux)
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/system-deps
- name: Install toolchain (rust-toolchain.toml)
run: rustup toolchain install
- uses: Swatinem/rust-cache@v2
with:
key: release
- name: Build
run: cargo build --release --locked -p voelin-ui -p voelin-gateway
# dpkg-shlibdeps works out the .deb's dependencies.
- name: Package (.tar.gz, .deb)
run: |
sudo apt-get install -y --no-install-recommends dpkg-dev
scripts/package.sh linux dist
- uses: actions/upload-artifact@v4
with:
name: voelin-linux-x86_64
path: dist/
if-no-files-found: error
package-windows:
name: package (Windows)
# Windows-only code compiles and is lint-clean (MSVC, libvpx from vcpkg).
clippy-windows:
name: clippy (Windows)
runs-on: windows-2025
steps:
- uses: actions/checkout@v4
@@ -95,92 +79,16 @@ jobs:
- name: Install toolchain (rust-toolchain.toml)
run: rustup toolchain install
- uses: Swatinem/rust-cache@v2
with:
key: release
- name: Build
run: cargo build --release --locked -p voelin-ui
# The installer is required here: install NSIS when the image lacks it.
- name: NSIS
shell: pwsh
run: |
$makensis = (Get-Command makensis -ErrorAction SilentlyContinue).Source
if (-not $makensis) { $makensis = "${env:ProgramFiles(x86)}\NSIS\makensis.exe" }
if (-not (Test-Path $makensis)) {
choco install nsis -y --no-progress
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
}
"MAKENSIS=$($makensis.Replace('\', '/'))" >> $env:GITHUB_ENV
- name: Package (.zip, installer)
- name: clippy (own crates, deny warnings)
shell: bash
run: scripts/package.sh windows dist
- uses: actions/upload-artifact@v4
with:
name: voelin-windows-x86_64
path: dist/
if-no-files-found: error
run: cargo clippy $(scripts/own-crates.sh) --all-targets --no-deps --locked -- -D warnings
# Flatpak bundle from packaging/flatpak (install with
# `flatpak install --user voelin.flatpak`). flatpak-builder builds
# offline, from the crates that flatpak-cargo-generator lists.
package-flatpak:
name: package (Flatpak)
# The Android-only code (docs/android.md), for the Android target. The APKs
# are built by release.yml.
clippy-android:
name: clippy (Android)
runs-on: ubuntu-24.04
timeout-minutes: 90
container:
image: ghcr.io/flathub-infra/flatpak-github-actions:freedesktop-25.08
options: --privileged
env:
# flatpak-builder-tools, pinned.
FBT_COMMIT: 41c20aa10819cdb2a4f3ca171758a96d1955c018
steps:
- uses: actions/checkout@v4
- name: Cargo sources
run: |
curl -sSfL -o /tmp/flatpak-cargo-generator.py \
"https://raw.githubusercontent.com/flatpak/flatpak-builder-tools/$FBT_COMMIT/cargo/flatpak-cargo-generator.py"
python3 -m venv /tmp/venv
/tmp/venv/bin/pip install --quiet "aiohttp>=3.9.5,<4" "tomlkit>=0.13.3,<1" "PyYAML>=6.0.2,<7"
/tmp/venv/bin/python /tmp/flatpak-cargo-generator.py Cargo.lock -o packaging/flatpak/cargo-sources.json
- uses: flatpak/flatpak-github-actions/flatpak-builder@v6
with:
bundle: voelin.flatpak
manifest-path: packaging/flatpak/io.github.faumaray.Voelin.yml
cache-key: flatpak-builder-${{ hashFiles('Cargo.lock') }}
upload-artifact: false
- uses: actions/upload-artifact@v4
with:
name: voelin-flatpak-x86_64
path: voelin.flatpak
if-no-files-found: error
# The gateway's container image (crates/voelin-gateway/Dockerfile), saved as a
# file: `docker load -i tsgw-image.tar.gz`.
package-gateway-image:
name: package (gateway image)
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Build and save
run: |
version=$(sed -n 's/^version = "\(.*\)"$/\1/p' crates/voelin-gateway/Cargo.toml | head -n 1)
docker build -f crates/voelin-gateway/Dockerfile -t "tsgw:$version" -t tsgw:latest .
mkdir -p dist
docker save "tsgw:$version" tsgw:latest | gzip > dist/tsgw-image.tar.gz
(cd dist && sha256sum tsgw-image.tar.gz > SHA256SUMS-gateway)
- uses: actions/upload-artifact@v4
with:
name: tsgw-image
path: dist/
if-no-files-found: error
# The Android app (docs/android.md): clippy on the Android-only code, a
# debug APK for arm64-v8a and x86_64 (emulators), and a signed release APK
# when the signing secrets are set (docs/release.md). Nothing runs on a
# device here.
android:
name: android (APKs)
runs-on: ubuntu-24.04
timeout-minutes: 90
timeout-minutes: 45
env:
NDK_VERSION: 27.3.13750724
steps:
@@ -188,7 +96,7 @@ jobs:
- name: Install toolchain (rust-toolchain.toml)
run: |
rustup toolchain install
rustup target add aarch64-linux-android x86_64-linux-android
rustup target add aarch64-linux-android
- uses: Swatinem/rust-cache@v2
with:
key: android
@@ -200,7 +108,7 @@ jobs:
run: |
yes | "$ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager" --licenses > /dev/null
"$ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager" \
"ndk;$NDK_VERSION" "platforms;android-36" "build-tools;36.0.0" > /dev/null
"ndk;$NDK_VERSION" "platforms;android-36" > /dev/null
echo "ANDROID_NDK_HOME=$ANDROID_HOME/ndk/$NDK_VERSION" >> "$GITHUB_ENV"
# CMake (libopus) and Slint's Java helper.
echo "ANDROID_NDK_ROOT=$ANDROID_HOME/ndk/$NDK_VERSION" >> "$GITHUB_ENV"
@@ -211,58 +119,6 @@ jobs:
run: |
cargo ndk -t arm64-v8a --platform 29 clippy --locked -p voelin-android -p voelin-ui --no-deps -- -D warnings
cargo ndk -t arm64-v8a --platform 29 clippy --locked -p voelin-media --no-default-features --no-deps -- -D warnings
- name: Debug APK
working-directory: android
run: ./gradlew --no-daemon assembleDebug -Pvoelin.abis=arm64-v8a,x86_64
# Only with the signing secrets; an unsigned release APK is not installable.
- name: Release APK (signed)
working-directory: android
env:
KEYSTORE_BASE64: ${{ secrets.ANDROID_KEYSTORE_BASE64 }}
VOELIN_SIGNING_STORE_PASSWORD: ${{ secrets.VOELIN_SIGNING_STORE_PASSWORD }}
VOELIN_SIGNING_KEY_ALIAS: ${{ secrets.VOELIN_SIGNING_KEY_ALIAS }}
VOELIN_SIGNING_KEY_PASSWORD: ${{ secrets.VOELIN_SIGNING_KEY_PASSWORD }}
run: |
if [ -z "$KEYSTORE_BASE64" ]; then
echo "::notice::No ANDROID_KEYSTORE_BASE64 secret: skipping the release APK"
exit 0
fi
export VOELIN_SIGNING_STORE_FILE="$RUNNER_TEMP/release.jks"
echo "$KEYSTORE_BASE64" | base64 -d > "$VOELIN_SIGNING_STORE_FILE"
./gradlew --no-daemon assembleRelease -Pvoelin.abis=arm64-v8a,x86_64
rm -f "$VOELIN_SIGNING_STORE_FILE"
- name: Package
run: scripts/package.sh android dist
- uses: actions/upload-artifact@v4
with:
name: voelin-android
path: dist/
if-no-files-found: error
# A v* tag: every package, attached to a draft GitHub release to review and
# publish by hand.
release:
name: draft release
if: startsWith(github.ref, 'refs/tags/v')
needs: [lint, test, deny, notices, smoke, package-linux, package-windows, package-flatpak, package-gateway-image, android]
runs-on: ubuntu-24.04
permissions:
contents: write
steps:
- uses: actions/download-artifact@v4
with:
path: dist
merge-multiple: true
- name: Checksums
run: |
cd dist
rm -f SHA256SUMS-*
sha256sum -- * > SHA256SUMS
- uses: softprops/action-gh-release@v2
with:
draft: true
generate_release_notes: true
files: dist/*
# Licenses, bans, sources and RustSec advisories (the `cargo audit`
# database); audit.yml repeats the advisories check daily.
+6 -23
View File
@@ -1,31 +1,14 @@
name: Docker builds
# The local builds in docker/ (docs/building.md), run here so they keep
# working: weekly, by hand, and when they or the packaging change. Each build
# uploads what it made, the same kinds of packages as CI's package jobs
# (the Windows one cross-compiled with mingw-w64).
# The local builds in docker/ (docs/building.md), checked at every release
# tag and on demand (Actions → Docker builds → Run workflow). Each build
# uploads what it made: the same kinds of packages as release.yml, the
# Windows one cross-compiled with mingw-w64.
on:
schedule:
- cron: "17 3 * * 1"
workflow_dispatch:
push:
branches: [main, master]
paths:
- docker/**
- scripts/package.sh
- scripts/docker-build.sh
- .dockerignore
- packaging/**
- .github/workflows/docker.yml
pull_request:
paths:
- docker/**
- scripts/package.sh
- scripts/docker-build.sh
- .dockerignore
- packaging/**
- .github/workflows/docker.yml
tags: ["v*"]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
+245
View File
@@ -0,0 +1,245 @@
name: Release
# The packages (docs/building.md), made by scripts/package.sh like the Docker
# builds in docker/. A v* tag attaches them to a draft GitHub release; run by
# hand (Actions → Release → Run workflow) they are only uploaded as artifacts.
# The package jobs run alongside the checks, so a manual run yields packages
# even when a check fails; a release needs everything green.
on:
push:
tags: ["v*"]
workflow_dispatch:
concurrency:
group: release-build-${{ github.ref }}
cancel-in-progress: false
permissions:
contents: read
env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: "0"
jobs:
# The same checks as every push (lint, Linux tests, Windows and Android
# clippy, deny, notices, integration tests).
checks:
uses: ./.github/workflows/ci.yml
test-windows:
name: test (Windows)
runs-on: windows-2025
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/system-deps
- name: Install toolchain (rust-toolchain.toml)
run: rustup toolchain install
- uses: Swatinem/rust-cache@v2
- name: Build
run: cargo build --workspace --all-targets --locked
- name: Test
run: cargo test --workspace --locked
package-linux:
name: package (Linux)
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/system-deps
- name: Install toolchain (rust-toolchain.toml)
run: rustup toolchain install
- uses: Swatinem/rust-cache@v2
with:
key: release
- name: Build
run: cargo build --release --locked -p voelin-ui -p voelin-gateway
# dpkg-shlibdeps works out the .deb's dependencies.
- name: Package (.tar.gz, .deb)
run: |
sudo apt-get install -y --no-install-recommends dpkg-dev
scripts/package.sh linux dist
- uses: actions/upload-artifact@v4
with:
name: voelin-linux-x86_64
path: dist/
if-no-files-found: error
package-windows:
name: package (Windows)
runs-on: windows-2025
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/system-deps
- name: Install toolchain (rust-toolchain.toml)
run: rustup toolchain install
- uses: Swatinem/rust-cache@v2
with:
key: release
- name: Build
run: cargo build --release --locked -p voelin-ui
# The installer is required here: install NSIS when the image lacks it.
- name: NSIS
shell: pwsh
run: |
$makensis = (Get-Command makensis -ErrorAction SilentlyContinue).Source
if (-not $makensis) { $makensis = "${env:ProgramFiles(x86)}\NSIS\makensis.exe" }
if (-not (Test-Path $makensis)) {
choco install nsis -y --no-progress
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
}
"MAKENSIS=$($makensis.Replace('\', '/'))" >> $env:GITHUB_ENV
- name: Package (.zip, installer)
shell: bash
run: scripts/package.sh windows dist
- uses: actions/upload-artifact@v4
with:
name: voelin-windows-x86_64
path: dist/
if-no-files-found: error
# Flatpak bundle from packaging/flatpak (install with
# `flatpak install --user voelin.flatpak`). flatpak-builder builds
# offline, from the crates that flatpak-cargo-generator lists.
package-flatpak:
name: package (Flatpak)
runs-on: ubuntu-24.04
timeout-minutes: 90
container:
image: ghcr.io/flathub-infra/flatpak-github-actions:freedesktop-25.08
options: --privileged
env:
# flatpak-builder-tools, pinned.
FBT_COMMIT: 41c20aa10819cdb2a4f3ca171758a96d1955c018
steps:
- uses: actions/checkout@v4
- name: Cargo sources
run: |
curl -sSfL -o /tmp/flatpak-cargo-generator.py \
"https://raw.githubusercontent.com/flatpak/flatpak-builder-tools/$FBT_COMMIT/cargo/flatpak-cargo-generator.py"
python3 -m venv /tmp/venv
/tmp/venv/bin/pip install --quiet "aiohttp>=3.9.5,<4" "tomlkit>=0.13.3,<1" "PyYAML>=6.0.2,<7"
/tmp/venv/bin/python /tmp/flatpak-cargo-generator.py Cargo.lock -o packaging/flatpak/cargo-sources.json
- uses: flatpak/flatpak-github-actions/flatpak-builder@v6
with:
bundle: voelin.flatpak
manifest-path: packaging/flatpak/io.github.faumaray.Voelin.yml
cache-key: flatpak-builder-${{ hashFiles('Cargo.lock') }}
upload-artifact: false
- uses: actions/upload-artifact@v4
with:
name: voelin-flatpak-x86_64
path: voelin.flatpak
if-no-files-found: error
# The gateway's container image (crates/voelin-gateway/Dockerfile), saved as a
# file: `docker load -i tsgw-image.tar.gz`.
package-gateway-image:
name: package (gateway image)
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Build and save
run: |
version=$(sed -n 's/^version = "\(.*\)"$/\1/p' crates/voelin-gateway/Cargo.toml | head -n 1)
docker build -f crates/voelin-gateway/Dockerfile -t "tsgw:$version" -t tsgw:latest .
mkdir -p dist
docker save "tsgw:$version" tsgw:latest | gzip > dist/tsgw-image.tar.gz
(cd dist && sha256sum tsgw-image.tar.gz > SHA256SUMS-gateway)
- uses: actions/upload-artifact@v4
with:
name: tsgw-image
path: dist/
if-no-files-found: error
# The Android app (docs/android.md): a debug APK for arm64-v8a and x86_64
# (emulators), and a signed release APK when the signing secrets are set
# (docs/release.md).
package-android:
name: package (Android)
runs-on: ubuntu-24.04
timeout-minutes: 90
env:
NDK_VERSION: 27.3.13750724
steps:
- uses: actions/checkout@v4
- name: Install toolchain (rust-toolchain.toml)
run: |
rustup toolchain install
rustup target add aarch64-linux-android x86_64-linux-android
- uses: Swatinem/rust-cache@v2
with:
key: android
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
- name: Android SDK packages
run: |
yes | "$ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager" --licenses > /dev/null
"$ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager" \
"ndk;$NDK_VERSION" "platforms;android-36" "build-tools;36.0.0" > /dev/null
echo "ANDROID_NDK_HOME=$ANDROID_HOME/ndk/$NDK_VERSION" >> "$GITHUB_ENV"
# CMake (libopus) and Slint's Java helper.
echo "ANDROID_NDK_ROOT=$ANDROID_HOME/ndk/$NDK_VERSION" >> "$GITHUB_ENV"
echo "ANDROID_JAR=$ANDROID_HOME/platforms/android-36/android.jar" >> "$GITHUB_ENV"
- name: Install cargo-ndk
run: cargo install cargo-ndk --locked --version 4.1.2
- name: Debug APK
working-directory: android
run: ./gradlew --no-daemon assembleDebug -Pvoelin.abis=arm64-v8a,x86_64
# Only with the signing secrets; an unsigned release APK is not installable.
- name: Release APK (signed)
working-directory: android
env:
KEYSTORE_BASE64: ${{ secrets.ANDROID_KEYSTORE_BASE64 }}
VOELIN_SIGNING_STORE_PASSWORD: ${{ secrets.VOELIN_SIGNING_STORE_PASSWORD }}
VOELIN_SIGNING_KEY_ALIAS: ${{ secrets.VOELIN_SIGNING_KEY_ALIAS }}
VOELIN_SIGNING_KEY_PASSWORD: ${{ secrets.VOELIN_SIGNING_KEY_PASSWORD }}
run: |
if [ -z "$KEYSTORE_BASE64" ]; then
echo "::notice::No ANDROID_KEYSTORE_BASE64 secret: skipping the release APK"
exit 0
fi
export VOELIN_SIGNING_STORE_FILE="$RUNNER_TEMP/release.jks"
echo "$KEYSTORE_BASE64" | base64 -d > "$VOELIN_SIGNING_STORE_FILE"
./gradlew --no-daemon assembleRelease -Pvoelin.abis=arm64-v8a,x86_64
rm -f "$VOELIN_SIGNING_STORE_FILE"
- name: Package
run: scripts/package.sh android dist
- uses: actions/upload-artifact@v4
with:
name: voelin-android
path: dist/
if-no-files-found: error
# A v* tag: every package, attached to a draft GitHub release to review and
# publish by hand.
release:
name: draft release
if: startsWith(github.ref, 'refs/tags/v')
needs: [checks, test-windows, package-linux, package-windows, package-flatpak, package-gateway-image, package-android]
runs-on: ubuntu-24.04
permissions:
contents: write
steps:
- uses: actions/download-artifact@v4
with:
pattern: voelin-*
path: dist
merge-multiple: true
- uses: actions/download-artifact@v4
with:
name: tsgw-image
path: dist
- name: Checksums
run: |
cd dist
rm -f SHA256SUMS-*
sha256sum -- * > SHA256SUMS
- uses: softprops/action-gh-release@v2
with:
draft: true
generate_release_notes: true
files: dist/*
+4 -3
View File
@@ -102,9 +102,10 @@ Development switches of the desktop app (environment variables): `VOELIN_DATA_DI
`VOELIN_DEMO_STREAM=1` (a local test stream in the viewer, no server needed),
`VOELIN_OPEN=share|settings[:<tab>]|about|client`, `VOELIN_AUTOWATCH=1`, `VOELIN_AUTOSHARE=test-pattern`.
Ready-made packages (Linux `.tar.gz`/`.deb`/Flatpak, Windows zip and installer, Android APK)
come from every CI run, and `scripts/docker-build.sh` builds the same ones locally in Docker:
see [docs/building.md](docs/building.md).
Ready-made packages (Linux `.tar.gz`/`.deb`/Flatpak, Windows zip and installer, Android APK,
and the `tsgw` gateway for Linux servers) come from the release workflow (version tags, or run by
hand), and `scripts/docker-build.sh` builds the same ones locally in Docker: see
[docs/building.md](docs/building.md).
Building on Linux needs the ALSA headers (`libasound2-dev`), fontconfig and xkbcommon
headers for the UI (`libfontconfig1-dev libxkbcommon-dev`), plus CMake and a C compiler for
+2 -1
View File
@@ -46,7 +46,8 @@ COPY <<-'EOF' /usr/local/bin/java-proxy-opts
EOF
RUN chmod +x /usr/local/bin/java-proxy-opts
# The SDK packages CI installs (.github/workflows/ci.yml, android job).
# The SDK packages the release workflow installs (.github/workflows/release.yml,
# package-android job).
ENV ANDROID_HOME=/opt/android-sdk
ARG CMDLINE_TOOLS=commandlinetools-linux-16111833_latest.zip
ARG CMDLINE_TOOLS_SHA1=e025545c62a8e64c7559119566a569fb1dec5f60
+26 -23
View File
@@ -1,8 +1,10 @@
# Packages: from CI and built locally
# Packages: from releases and built locally
Every platform has installable packages. CI builds them on each run, and the
Dockerfiles in `docker/` build the same kinds of packages on any machine with
Docker. Both use `scripts/package.sh`, so file names and contents match.
Every platform has installable packages. The release workflow builds them,
and the Dockerfiles in `docker/` build the same kinds of packages on any
machine with Docker. Both use `scripts/package.sh`, so file names and
contents match. Regular CI (`ci.yml`, every push and PR) only runs the fast
checks and builds no packages.
The packages hold the app, Voelin. The gateway `tsgw` runs on servers and is
packaged for Linux only, separately. `voelinctl` is a development tool and is
@@ -12,10 +14,10 @@ in no package (`cargo run -p voelinctl`).
|---|---|---|
| Linux x86_64 | `voelin-<version>-linux-x86_64.tar.gz` | unpack; `bin/voelin` plus desktop file and icon (prefix layout: `tar -xzf … --strip-components=1 -C ~/.local`) |
| | `voelin_<version>_amd64.deb` | `sudo apt install ./voelin_<version>_amd64.deb` (Ubuntu 24.04+, Debian 13+) |
| | `voelin.flatpak` (CI only) | `flatpak install --user voelin.flatpak` |
| | `voelin.flatpak` (release workflow only) | `flatpak install --user voelin.flatpak` |
| Linux server | `tsgw_<version>_amd64.deb` | `sudo apt install ./tsgw_<version>_amd64.deb`, then configure and start it ([gateway-admin.md](gateway-admin.md#install)) |
| | `tsgw-<version>-linux-x86_64.tar.gz` | unpack; `bin/tsgw`, the systemd unit and the example config |
| | `tsgw-image.tar.gz` (CI only) | `docker load -i tsgw-image.tar.gz` |
| | `tsgw-image.tar.gz` (release workflow only) | `docker load -i tsgw-image.tar.gz` |
| Windows x86_64 | `voelin-<version>-windows-x86_64.zip` | unpack; `voelin.exe` |
| | `voelin-<version>-setup.exe` | run it (per-machine install, uninstaller in Settings → Apps) |
| Android | `voelin-<version>-android-debug.apk` | `adb install …` or open it on the phone (arm64-v8a and x86_64) |
@@ -28,32 +30,33 @@ signed with a debug key (fine for testing, not for the Play Store).
The gateway's image can also be built directly:
`docker build -f crates/voelin-gateway/Dockerfile -t tsgw .`.
## From CI
## From releases
`.github/workflows/ci.yml` uploads one artifact per platform on every run:
`voelin-linux-x86_64` (the app's and the gateway's Linux packages),
`voelin-windows-x86_64`, `voelin-flatpak-x86_64`, `voelin-android` and
`tsgw-image`. Download them from the run's page (Actions → the run →
Artifacts), or with the GitHub CLI:
`.github/workflows/release.yml` builds every package:
- **A version tag** `v*` (`git tag -s v0.2.0 && git push origin v0.2.0`): the
packages and a `SHA256SUMS` are attached to a **draft** GitHub release once
all checks pass (the same checks as CI, plus the Windows tests); review and
publish it by hand ([release.md](release.md#checklist)).
- **By hand**, for a build to test without a release: Actions → Release → Run
workflow (or `gh workflow run release.yml --ref <branch>`). The packages are
uploaded as artifacts, kept for 90 days: `voelin-linux-x86_64` (the app's and
the gateway's Linux packages), `voelin-windows-x86_64`,
`voelin-flatpak-x86_64`, `voelin-android` and `tsgw-image`.
```sh
gh run list --workflow ci.yml --limit 5
gh workflow run release.yml --ref main
gh run list --workflow release.yml --limit 3
gh run download <run id> --dir dist
```
GitHub keeps artifacts for 90 days. For builds that stay, push a version tag:
`git tag -s v0.2.0 && git push origin v0.2.0` runs the whole workflow and, if
everything passes, the `release` job attaches all packages and a `SHA256SUMS`
to a **draft** GitHub release, which you review and publish by hand
([release.md](release.md#checklist)).
The Windows packages from CI use the MSVC toolchain and libvpx from vcpkg.
The Android job builds a signed release APK only when the repository has the
The Windows packages use the MSVC toolchain and libvpx from vcpkg. The
Android job builds a signed release APK only when the repository has the
signing secrets (`ANDROID_KEYSTORE_BASE64`, `VOELIN_SIGNING_STORE_PASSWORD`,
`VOELIN_SIGNING_KEY_ALIAS`, `VOELIN_SIGNING_KEY_PASSWORD`).
`.github/workflows/docker.yml` builds the Docker files below weekly, by hand
(Actions → Docker builds → Run workflow) and when they change, and uploads
`.github/workflows/docker.yml` builds the Docker files below for every
release tag and by hand (Actions → Docker builds → Run workflow), and uploads
their output as `docker-linux`, `docker-windows` and `docker-android`.
## Locally with Docker
+3 -2
View File
@@ -64,8 +64,9 @@ is written to the audit table.
## Install
tsgw is packaged for Linux servers, separately from the app
([building.md](building.md)): every CI run uploads the packages in the
`voelin-linux-x86_64` artifact and the image as `tsgw-image`, and
([building.md](building.md)): the release workflow attaches the packages and
the image (`tsgw-image.tar.gz`) to each release and uploads them as artifacts
when run by hand, and
`scripts/docker-build.sh linux` builds them locally.
**Debian/Ubuntu** (`tsgw_<version>_amd64.deb`, Ubuntu 24.04+ / Debian 13+).
+6 -5
View File
@@ -169,11 +169,12 @@ Before tagging:
Release:
7. Tag `v<version>` (signed) on the release commit and push it.
8. The tag's CI run builds every package ([building.md](building.md)): the
app's Linux tarball and `.deb`, Flatpak bundle, Windows zip and installer
and Android APKs (signed when the secrets are set), and the gateway's
Linux tarball, `.deb` and image; its `release` job
attaches them with a `SHA256SUMS` to a draft GitHub release. Sign the
8. The tag's release workflow (`release.yml`, [building.md](building.md))
runs the checks and the Windows tests and builds every package: the app's
Linux tarball and `.deb`, Flatpak bundle, Windows zip and installer and
Android APKs (signed when the secrets are set), and the gateway's Linux
tarball, `.deb` and image; its `release` job attaches them with a
`SHA256SUMS` to a draft GitHub release. Sign the
Windows executable and installer, and an AAB for Google Play, by hand
until CI has the certificates.
9. Verify: signatures (`signtool verify`, `apksigner verify`), the installer
+1 -1
View File
@@ -41,7 +41,7 @@ Regenerate `cargo-sources.json` whenever `Cargo.lock` changes. Inside the build
least the workspace's `rust-version`. The `llvm20` extension provides libclang for
bindgen (PipeWire bindings); the SDK has everything else the build needs (CMake for
libopus, ALSA, fontconfig, xkbcommon, libvpx, PipeWire). CI builds the bundle in the
`package-flatpak` job ([docs/building.md](../docs/building.md)).
`package-flatpak` job of the release workflow ([docs/building.md](../docs/building.md)).
Permissions (`finish-args`): network, Wayland with X11 fallback, DRI, PulseAudio
(microphone and speakers), the PipeWire socket (application audio when streaming),
+4 -3
View File
@@ -1,8 +1,9 @@
# Windows build and installer
CI (`package-windows` in `.github/workflows/ci.yml`) builds `voelin.exe` on
`windows-2025` and uploads the zip and the installer as the
`voelin-windows-x86_64` artifact. Nothing is signed there. The gateway `tsgw`
The release workflow (`package-windows` in `.github/workflows/release.yml`)
builds `voelin.exe` on `windows-2025` and attaches the zip and the installer to
the release (artifact `voelin-windows-x86_64` when run by hand). Nothing is
signed there. Regular CI only runs clippy on Windows. The gateway `tsgw`
is for servers and packaged for Linux only.
`docker/windows.Dockerfile` cross-compiles the same packages on Linux
([docs/building.md](../../docs/building.md)).
+3 -2
View File
@@ -1,9 +1,10 @@
#!/usr/bin/env bash
# Print `-p <crate>` for every workspace crate outside the vendored crates/proto,
# Print `-p <crate>` for every workspace crate outside the vendored crates/proto
# (manifest paths with / or \ separators, for Windows),
# for commands that apply strict checks to our own code only:
# cargo clippy $(scripts/own-crates.sh) --all-targets --no-deps -- -D warnings
set -euo pipefail
cd "$(dirname "$0")/.."
cargo metadata --no-deps --format-version 1 |
jq -r '.packages[] | select(.manifest_path | contains("/crates/proto/") | not) | "-p \(.name)"' |
jq -r '.packages[] | select(.manifest_path | gsub("\\\\"; "/") | contains("/crates/proto/") | not) | "-p \(.name)"' |
tr '\n' ' '