mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-09-06 12:03:41 +02:00
another fix
This commit is contained in:
parent
8774640c27
commit
aa537b8d9d
1 changed files with 25 additions and 9 deletions
34
.github/workflows/flatpak-build.yml
vendored
34
.github/workflows/flatpak-build.yml
vendored
|
@ -9,16 +9,24 @@ jobs:
|
||||||
runs-on: self-hosted
|
runs-on: self-hosted
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Manual cleanup with sudo
|
||||||
|
run: |
|
||||||
|
cd /home/runner/actions-runner/_work/AyuGramDesktop-flatpak/AyuGramDesktop-flatpak || true
|
||||||
|
if [ -d "git-cache" ]; then
|
||||||
|
echo "Fixing permissions for git-cache..."
|
||||||
|
sudo find git-cache -type d -exec chmod 755 {} \; || true
|
||||||
|
sudo find git-cache -type f -exec chmod 644 {} \; || true
|
||||||
|
sudo chown -R $(id -u):$(id -g) git-cache || true
|
||||||
|
echo "Removing git-cache..."
|
||||||
|
rm -rf git-cache || sudo rm -rf git-cache || true
|
||||||
|
fi
|
||||||
|
# Clean everything else
|
||||||
|
sudo find . -mindepth 1 -maxdepth 1 ! -name 'git-cache' -exec rm -rf {} \; || true
|
||||||
|
|
||||||
- name: Checkout main repository
|
- name: Checkout main repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
- name: Force clean git cache permissions
|
clean: false
|
||||||
run: |
|
|
||||||
if [ -d "./git-cache" ]; then
|
|
||||||
sudo find ./git-cache -type d -exec chmod 755 {} \;
|
|
||||||
sudo find ./git-cache -type f -exec chmod 644 {} \;
|
|
||||||
sudo chown -R $(id -u):$(id -g) ./git-cache || true
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Cache Git dependencies
|
- name: Cache Git dependencies
|
||||||
id: cache-git-repos
|
id: cache-git-repos
|
||||||
|
@ -56,7 +64,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
docker run --rm \
|
docker run --rm \
|
||||||
--cpus="3" \
|
--cpus="3" \
|
||||||
-u $(id -u) \
|
-u $(id -u):$(id -g) \
|
||||||
-v "$PWD:/usr/src/tdesktop" \
|
-v "$PWD:/usr/src/tdesktop" \
|
||||||
-v "$PWD/git-cache/Implib.so:/usr/src/Implib.so" \
|
-v "$PWD/git-cache/Implib.so:/usr/src/Implib.so" \
|
||||||
-v "$PWD/git-cache/patches:/usr/src/patches" \
|
-v "$PWD/git-cache/patches:/usr/src/patches" \
|
||||||
|
@ -109,6 +117,14 @@ jobs:
|
||||||
-D TDESKTOP_API_ID=${TDESKTOP_API_ID} \
|
-D TDESKTOP_API_ID=${TDESKTOP_API_ID} \
|
||||||
-D TDESKTOP_API_HASH=${TDESKTOP_API_HASH}
|
-D TDESKTOP_API_HASH=${TDESKTOP_API_HASH}
|
||||||
|
|
||||||
|
- name: Fix git-cache permissions after Docker
|
||||||
|
run: |
|
||||||
|
if [ -d "./git-cache" ]; then
|
||||||
|
sudo find ./git-cache -type d -exec chmod 755 {} \;
|
||||||
|
sudo find ./git-cache -type f -exec chmod 644 {} \;
|
||||||
|
sudo chown -R $(id -u):$(id -g) ./git-cache
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Prepare Flatpak build directory
|
- name: Prepare Flatpak build directory
|
||||||
run: |
|
run: |
|
||||||
mkdir ayugram-flatpak-build
|
mkdir ayugram-flatpak-build
|
||||||
|
|
Loading…
Add table
Reference in a new issue