ZaStoGram_desktop/.github/workflows/snap.yml
loop-uh 13aead0e9c Require proxy, always-show shield, review fixes, win-only CI
Force-proxy: refuse to connect without a proxy (user must add one). Always show the connection shield. Fix review-found issues: raise ClientHello size limit so FirefoxAndroid/AutoRotate connect, schedule connect spacing on the session thread, keep cooled endpoints rankable, bound paced-write to startup. CI: build only Windows x64+x86, drop Qt6 and Ninja Multi-Config, keep dependency caches; other platforms manual-only.
2026-06-27 22:12:03 +03:00

54 lines
1.5 KiB
YAML

name: Snap.
on:
workflow_dispatch:
jobs:
snap:
name: Ubuntu
runs-on: ${{ (github.event_name == 'pull_request' || startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/nightly') && 'depot-ubuntu-latest-16' || 'ubuntu-latest' }}
env:
UPLOAD_ARTIFACT: "true"
steps:
- name: Clone.
uses: actions/checkout@v7
with:
fetch-depth: 0
submodules: recursive
- name: First set up.
run: |
sudo iptables -P FORWARD ACCEPT
sudo snap install --classic snapcraft
sudo usermod -aG lxd $USER
sudo lxd init --auto
sudo lxd waitready
- name: Free up some disk space.
uses: samueldr/more-space-action@97048bd0df83fb05b5257887bdbaffc848887673
with:
enable-remove-default-apt-patterns: false
enable-lvm-span: true
lvm-span-mountpoint: /var/snap/lxd/common/lxd/storage-pools/default/containers
- name: Telegram Desktop snap build.
run: sudo -u $USER snap run snapcraft --verbosity=debug
- name: Move artifact.
if: env.UPLOAD_ARTIFACT == 'true'
run: |
artifact_name=$(echo telegram-desktop_*.snap)
echo "ARTIFACT_NAME=$artifact_name" >> $GITHUB_ENV
mkdir artifact
mv $artifact_name artifact
- uses: actions/upload-artifact@v7
if: env.UPLOAD_ARTIFACT == 'true'
name: Upload artifact.
with:
name: ${{ env.ARTIFACT_NAME }}
path: artifact