Files
VoelinClient/.github/workflows/docker.yml
T
Claude 0648172336 Packages from every CI platform, Docker builds for local packaging
scripts/package.sh turns release builds into the packages CI uploads and
the Docker builds produce: Linux .tar.gz and .deb (dependencies from
dpkg-shlibdeps), Windows .zip and NSIS installer, renamed Android APKs,
each with a SHA256SUMS file.

CI (ci.yml): package-linux, package-windows (installer now required),
package-flatpak (bundle from packaging/flatpak, cargo sources generated
in the job), package-gateway-image (docker save of tsgw) and the Android
job (debug APKs for arm64-v8a and x86_64, a signed release APK when the
signing secrets exist) each upload an artifact. A v* tag also attaches
everything to a draft GitHub release.

docker/{linux,windows,android}.Dockerfile with scripts/docker-build.sh
build the same packages locally into dist/<platform>/: Ubuntu 24.04,
a mingw-w64 cross build with a static libvpx pinned by commit, and the
Android SDK/NDK/cargo-ndk CI uses. Proxy settings and an optional CA
certificate are passed through. docker.yml runs them weekly and when
they change. docs/building.md describes both ways.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-26 19:56:57 +00:00

57 lines
1.6 KiB
YAML

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).
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
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: docker (${{ matrix.platform }})
strategy:
fail-fast: false
matrix:
platform: [linux, windows, android]
runs-on: ubuntu-24.04
timeout-minutes: 120
steps:
- uses: actions/checkout@v4
# The Android build needs more room than the runner leaves free.
- name: Free disk space
run: |
sudo rm -rf /usr/local/lib/android /usr/share/dotnet /opt/ghc /usr/local/.ghcup
df -h /
- name: Build
run: scripts/docker-build.sh ${{ matrix.platform }} --progress=plain
- uses: actions/upload-artifact@v4
with:
name: docker-${{ matrix.platform }}
path: dist/${{ matrix.platform }}/
if-no-files-found: error