mirror of
https://github.com/telegramdesktop/tdesktop
synced 2024-12-12 09:24:54 +00:00
4b82a56270
(& rename instructions to the actual state) Old instruction names were from the time when tdesktop used GYP that had MSVC, XCode and CMake backends. But tdesktop uses CMake now, so these names are no longer correct.
89 lines
2.1 KiB
YAML
89 lines
2.1 KiB
YAML
name: Snap.
|
|
|
|
on:
|
|
push:
|
|
paths-ignore:
|
|
- 'docs/**'
|
|
- '**.md'
|
|
- 'changelog.txt'
|
|
- 'LEGAL'
|
|
- 'LICENSE'
|
|
- '.github/**'
|
|
- '!.github/workflows/snap.yml'
|
|
- 'Telegram/build/**'
|
|
- 'Telegram/Resources/uwp/**'
|
|
- 'Telegram/Resources/winrc/**'
|
|
- 'Telegram/SourceFiles/platform/win/**'
|
|
- 'Telegram/SourceFiles/platform/mac/**'
|
|
- 'Telegram/Telegram/**'
|
|
- 'Telegram/configure.bat'
|
|
- 'Telegram/Telegram.plist'
|
|
pull_request:
|
|
paths-ignore:
|
|
- 'docs/**'
|
|
- '**.md'
|
|
- 'changelog.txt'
|
|
- 'LEGAL'
|
|
- 'LICENSE'
|
|
- '.github/**'
|
|
- '!.github/workflows/snap.yml'
|
|
- 'Telegram/build/**'
|
|
- 'Telegram/Resources/uwp/**'
|
|
- 'Telegram/Resources/winrc/**'
|
|
- 'Telegram/SourceFiles/platform/win/**'
|
|
- 'Telegram/SourceFiles/platform/mac/**'
|
|
- 'Telegram/Telegram/**'
|
|
- 'Telegram/configure.bat'
|
|
- 'Telegram/Telegram.plist'
|
|
|
|
jobs:
|
|
|
|
linux:
|
|
name: Ubuntu
|
|
runs-on: ubuntu-latest
|
|
|
|
env:
|
|
UPLOAD_ARTIFACT: "false"
|
|
|
|
steps:
|
|
- name: Clone.
|
|
uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0
|
|
submodules: recursive
|
|
|
|
- name: First set up.
|
|
run: |
|
|
sudo apt-get purge --autoremove lxd
|
|
|
|
sudo snap install --classic snapcraft
|
|
sudo snap install lxd
|
|
|
|
# Workaround for snapcraft
|
|
# See https://forum.snapcraft.io/t/13258
|
|
sudo chown root:root /
|
|
|
|
sudo usermod -aG lxd $USER
|
|
|
|
sudo snap run lxd init --auto
|
|
sudo snap run lxd waitready
|
|
|
|
- name: Telegram Desktop snap build.
|
|
run: sg lxd -c 'snap run snapcraft --use-lxd'
|
|
|
|
- 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@master
|
|
if: env.UPLOAD_ARTIFACT == 'true'
|
|
name: Upload artifact.
|
|
with:
|
|
name: ${{ env.ARTIFACT_NAME }}
|
|
path: artifact
|