setting up LFS cache and installing XVFB
Some checks failed
Create tag and build when new code gets to main / Export (push) Failing after 6m48s

This commit is contained in:
2026-01-25 19:06:08 +01:00
parent c66e929d8b
commit 05c4ce1c43

View File

@@ -19,9 +19,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Install node, curl and zip
- name: Install node, xvfb, curl and zip
run: |
apt update && apt -y install curl zip nodejs
apt update && apt -y install curl zip nodejs xvfb
# - name: Checkout with LFS
# uses: https://git.game-dev.space/minimata/checkout-with-lfs.git@main
@@ -34,6 +34,16 @@ jobs:
lfs: false
persist-credentials: true
- name: Create LFS file list
run: /usr/bin/git lfs ls-files -l | cut -d' ' -f1 | sort > .lfs-assets-id
- name: Restore LFS cache
uses: actions/cache@v5
id: lfs-cache
with:
path: .git/lfs
key: ${{ runner.os }}-lfs-${{ hashFiles('.lfs-assets-id') }}
- name: Checkout LFS
run: |
git lfs install --local
@@ -43,31 +53,6 @@ jobs:
git config -f $AUTH_FILE http.${{ gitea.server_url }}/${{ gitea.repository }}.git/info/lfs/objects/batch.extraheader "$AUTH"
git lfs pull
# - name: Create LFS file list
# run: /usr/bin/git lfs ls-files -l | cut -d' ' -f1 | sort > .lfs-assets-id
#
# - name: Restore LFS cache
# uses: actions/cache@v5
# id: lfs-cache
# with:
# path: .git/lfs
# key: ${{ runner.os }}-lfs-${{ hashFiles('.lfs-assets-id') }}
#
# - name: Checkout LFS
# run: |
# UrlBase=$GITHUB_SERVER_URL; \
# UrlLfsBase=$UrlBase/${{ gitea.repository }}.git/info/lfs/objects; \
# Auth=`/usr/bin/git config --get --local http.$UrlBase/.extraheader`; \
# /usr/bin/git config --local http.${UrlLfsBase}/batch.extraheader "$Auth"; \
# /usr/bin/git config --local http.${UrlLfsBase}/.extraheader ''
#
# git config --local lfs.transfer.maxretries 1
#
# /usr/bin/git lfs fetch origin refs/remotes/origin/${{ gitea.ref_name }}
# /usr/bin/git lfs checkout
# /usr/bin/git add .
# /usr/bin/git reset --hard
# Cache
- name: Restore Assets
uses: actions/cache@v5