testing ci

This commit is contained in:
2026-01-28 16:20:44 +01:00
parent e4ab103c4d
commit b84487336b

View File

@@ -43,41 +43,19 @@ jobs:
# env: # env:
# RUNNER_TOOL_CACHE: /toolcache # Runner Tool Cache # RUNNER_TOOL_CACHE: /toolcache # Runner Tool Cache
steps: steps:
# - name: Install node, xvfb and curl
# run: |
# apt update && apt -y install curl nodejs xvfb
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
token: ${{ secrets.TOKEN }} token: ${{ secrets.TOKEN }}
lfs: false lfs: false
persist-credentials: true 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 - name: Checkout LFS
run: | run: |
git lfs install --local git lfs install --local
echo toto
AUTH=$(git config http.${{ gitea.server_url }}/.extraheader) AUTH=$(git config http.${{ gitea.server_url }}/.extraheader)
echo tata
git config --local --unset http.${{ github.server_url }}/.extraheader 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" git config --local http.${{ github.server_url }}/${{ github.repository }}.git/info/lfs/objects/batch.extraheader "$AUTH"
echo bite
git lfs pull git lfs pull
- name: Run tests - name: Run tests
@@ -106,52 +84,29 @@ jobs:
# needs: # needs:
# - BumpTag # - BumpTag
# - Test # Wait for tests to finish # - Test # Wait for tests to finish
container:
image: barichello/godot-ci:mono-4.6
steps: steps:
- name: Install tools - name: Checkout
run: | uses: actions/checkout@v4
apt update && apt -y install curl zip with:
token: ${{ secrets.TOKEN }}
lfs: false
persist-credentials: true
- name: Install node 24 - name: Checkout LFS
run: | run: |
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash git lfs install --local
\. "$HOME/.nvm/nvm.sh" AUTH=$(git config http.${{ gitea.server_url }}/.extraheader)
nvm install 24 git config --local --unset http.${{ github.server_url }}/.extraheader
node -v git config --local http.${{ github.server_url }}/${{ github.repository }}.git/info/lfs/objects/batch.extraheader "$AUTH"
git lfs pull
- name: Test node version
run: |
node -v
- name: Checkout
uses: actions/checkout@v3
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 # - name: Checkout
# uses: actions/checkout@v6 # uses: actions/checkout@v6
# with: # with:
# lfs: false # lfs: false
# persist-credentials: true # persist-credentials: true
# - name: Checkout LFS # - name: Checkout LFS
# run: | # run: |
# git lfs install --local # git lfs install --local
@@ -164,20 +119,24 @@ jobs:
# - name: Remove GDUnit addon folder because it breaks the build # - name: Remove GDUnit addon folder because it breaks the build
# run: | # run: |
# rm -rf ${{ gitea.workspace }}/addons/gdunit4 # rm -rf ${{ gitea.workspace }}/addons/gdunit4
- uses: actions/setup-dotnet@v5 - name: Setup Godot
id: setup-godot
uses: https://git.game-dev.space/minimata/setup-godot.git@main
with: with:
dotnet-version: '9.x' godot-version: '4.6'
dotnet-version: 'net9.0'
- name: Import resources and build solution - name: Import resources and build solution
run: | run: |
godot --headless --editor --build-solutions --quit --import --path $PWD ${{ steps.setup-godot.outputs.godot_bin }} --headless --editor --build-solutions --quit --import --path $PWD
- name: Build Windows - name: Build Windows
run: | run: |
mkdir -v -p build/windows 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 zip -r Windows.zip build/windows
- name: Upload to Itch - name: Upload to Itch
uses: KikimoraGames/itch-publish@v0.0.3 uses: KikimoraGames/itch-publish@v0.0.3
with: with: