Bumps [endersonmenezes/free-disk-space](https://github.com/endersonmenezes/free-disk-space) from 2.1.0 to 2.1.1.
- [Release notes](https://github.com/endersonmenezes/free-disk-space/releases)
- [Commits](dd13eb48e7...713d134e24)
---
updated-dependencies:
- dependency-name: endersonmenezes/free-disk-space
dependency-version: 2.1.1
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
93 lines
2.6 KiB
YAML
93 lines
2.6 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:
|
|
|
|
snap:
|
|
name: Ubuntu
|
|
runs-on: ubuntu-latest
|
|
|
|
env:
|
|
UPLOAD_ARTIFACT: "true"
|
|
|
|
steps:
|
|
- name: Clone.
|
|
uses: actions/checkout@v5
|
|
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: endersonmenezes/free-disk-space@713d134e243b926eba4a5cce0cf608bfd1efb89a
|
|
with:
|
|
remove_android: true
|
|
remove_dotnet: true
|
|
remove_haskell: true
|
|
remove_tool_cache: true
|
|
remove_swap: true
|
|
remove_packages: "azure-cli google-cloud-cli microsoft-edge-stable google-chrome-stable firefox postgresql* temurin-* *llvm* mysql* dotnet-sdk-*"
|
|
remove_packages_one_command: true
|
|
remove_folders: "/usr/share/swift /usr/share/miniconda /usr/share/az* /usr/share/glade* /usr/local/lib/node_modules /usr/local/share/chromium /usr/local/share/powershell"
|
|
|
|
- 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@v4
|
|
if: env.UPLOAD_ARTIFACT == 'true'
|
|
name: Upload artifact.
|
|
with:
|
|
name: ${{ env.ARTIFACT_NAME }}
|
|
path: artifact
|