Compare commits

...

3 Commits

Author SHA1 Message Date
89ba5cc985 trying the the fix on export again and trying to cache lfs objects again
Some checks failed
Create tag and build when new code gets to main / BumpTag (push) Successful in 40s
Create tag and build when new code gets to main / Test (push) Successful in 5m45s
Create tag and build when new code gets to main / Export (push) Failing after 7m56s
2026-01-28 17:25:28 +01:00
fdc79166a0 testing ci
Some checks failed
Create tag and build when new code gets to main / BumpTag (push) Successful in 22s
Create tag and build when new code gets to main / Test (push) Successful in 4m39s
Create tag and build when new code gets to main / Export (push) Failing after 5m16s
2026-01-28 16:22:38 +01:00
b84487336b testing ci 2026-01-28 16:20:44 +01:00

View File

@@ -43,41 +43,19 @@ jobs:
# env:
# RUNNER_TOOL_CACHE: /toolcache # Runner Tool Cache
steps:
# - name: Install node, xvfb and curl
# run: |
# apt update && apt -y install curl nodejs xvfb
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.TOKEN }}
lfs: false
persist-credentials: true
# - name: Checkout LFS
# run: |
# git lfs install --local
# echo ${{ gitea.server_url }}
# AUTH=$(git config http.${{ gitea.server_url }}/.extraheader)
# echo ${{ gitea.repository }}
# AUTH_FILE=$(git config includeif.gitdir:/workspace/${{ gitea.repository }}/.git.path)
# echo sandwich
# git config -f $AUTH_FILE --unset http.${{ gitea.server_url }}/.extraheader
# echo teub
# git config -f $AUTH_FILE http.${{ gitea.server_url }}/${{ gitea.repository }}.git/info/lfs/objects/batch.extraheader "$AUTH"
# echo bite
# git lfs pull
- name: Checkout LFS
run: |
git lfs install --local
echo toto
AUTH=$(git config http.${{ gitea.server_url }}/.extraheader)
echo tata
git config --local --unset http.${{ github.server_url }}/.extraheader
echo http.${{ github.server_url }}/${{ github.repository }}.git/info/lfs/objects/batch.extraheader
git config --local http.${{ github.server_url }}/${{ github.repository }}.git/info/lfs/objects/batch.extraheader "$AUTH"
echo bite
git lfs pull
- name: Run tests
@@ -106,78 +84,57 @@ jobs:
# needs:
# - BumpTag
# - Test # Wait for tests to finish
container:
image: barichello/godot-ci:mono-4.6
steps:
- name: Install tools
run: |
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: Test node version
run: |
node -v
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
token: ${{ secrets.TOKEN }}
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 ''
- name: Create Git LFS file list
run: git lfs ls-files -l |cut -d' ' -f1 |sort >.git/lfs-hashes.txt
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
# with:
# 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: Remove GDUnit addon folder because it breaks the build
# run: |
# rm -rf ${{ gitea.workspace }}/addons/gdunit4
- uses: actions/setup-dotnet@v5
- name: Restore Git LFS object cache
uses: actions/cache@v5
with:
dotnet-version: '9.x'
- name: Import resources and build solution
path: .git/lfs
key: ${{ runner.os }}-lfsdata-v1-${{ hashFiles('.git/lfs-hashes.txt') }}
restore-keys: |
${{ runner.os }}-lfsdata-v1-
${{ runner.os }}-lfsdata
- name: Setup LFS
run: |
godot --headless --editor --build-solutions --quit --import --path $PWD
git lfs install --local
AUTH=$(git config http.${{ gitea.server_url }}/.extraheader)
git config --local --unset http.${{ github.server_url }}/.extraheader
git config --local http.${{ github.server_url }}/${{ github.repository }}.git/info/lfs/objects/batch.extraheader "$AUTH"
- name: Fetch any needed Git LFS objects and prune extraneous ones
run: git lfs fetch --prune
- name: Check out Git LFS content
run: git lfs checkout
- name: Setup Godot
id: setup-godot
uses: https://git.game-dev.space/minimata/setup-godot.git@main
with:
godot-version: '4.6'
dotnet-version: 'net9.0'
- name: Remove GDUnit addon
run: |
rm -rf ${{ gitea.workspace }}/addons/gdUnit4
- name: Build Windows
run: |
mkdir -v -p build/windows
godot --headless --verbose --export-release "Windows Desktop" build/windows/${{ env.GAME_NAME }}.exe
${{ steps.setup-godot.outputs.godot_bin }} --headless --verbose --export-release "Windows Desktop" build/windows/${{ env.GAME_NAME }}.exe
zip -r Windows.zip build/windows
- name: Upload to Itch
uses: KikimoraGames/itch-publish@v0.0.3
with: