From 02ec230b3f7893320ce2ac74cb6282f01165efdb Mon Sep 17 00:00:00 2001 From: Minimata Date: Wed, 28 Jan 2026 12:48:28 +0100 Subject: [PATCH] testing ci --- .gitea/workflows/main.yaml | 74 ++++++++++++++++++++++---------------- 1 file changed, 43 insertions(+), 31 deletions(-) diff --git a/.gitea/workflows/main.yaml b/.gitea/workflows/main.yaml index 4427f893..632ff09c 100644 --- a/.gitea/workflows/main.yaml +++ b/.gitea/workflows/main.yaml @@ -54,12 +54,18 @@ jobs: - name: Checkout LFS run: | - git lfs install --local - AUTH=$(git config http.${{ gitea.server_url }}/.extraheader) - AUTH_FILE=$(git config includeif.gitdir:/workspace/${{ gitea.repository }}/.git.path) - git config -f $AUTH_FILE --unset http.${{ gitea.server_url }}/.extraheader - git config -f $AUTH_FILE http.${{ gitea.server_url }}/${{ gitea.repository }}.git/info/lfs/objects/batch.extraheader "$AUTH" - git lfs pull + 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 - name: Run tests uses: godot-gdunit-labs/gdUnit4-action@v1 @@ -91,30 +97,36 @@ jobs: image: barichello/godot-ci:mono-4.6 steps: - - name: Install node, curl and zip + - name: Install curl and zip run: | - apt update && apt -y install curl zip nodejs + apt update && apt -y install curl zip + - name: Install node 24 + run: | + curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash + \. "$HOME/.nvm/nvm.sh" + nvm install 24 + node -v - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: lfs: false persist-credentials: true -# - 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 + - 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 # - name: Checkout # uses: actions/checkout@v6 @@ -122,14 +134,14 @@ jobs: # lfs: false # persist-credentials: true - - name: Checkout LFS - run: | - git lfs install --local - AUTH=$(git config http.${{ gitea.server_url }}/.extraheader) - AUTH_FILE=$(git config includeif.gitdir:/workspace/${{ gitea.repository }}/.git.path) - git config -f $AUTH_FILE --unset http.${{ gitea.server_url }}/.extraheader - git config -f $AUTH_FILE http.${{ gitea.server_url }}/${{ gitea.repository }}.git/info/lfs/objects/batch.extraheader "$AUTH" - git lfs pull +# - name: Checkout LFS +# run: | +# git lfs install --local +# AUTH=$(git config http.${{ gitea.server_url }}/.extraheader) +# AUTH_FILE=$(git config includeif.gitdir:/workspace/${{ gitea.repository }}/.git.path) +# git config -f $AUTH_FILE --unset http.${{ gitea.server_url }}/.extraheader +# git config -f $AUTH_FILE http.${{ gitea.server_url }}/${{ gitea.repository }}.git/info/lfs/objects/batch.extraheader "$AUTH" +# git lfs pull # - name: Remove GDUnit addon folder because it breaks the build # run: |