Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 89ba5cc985 | |||
| fdc79166a0 | |||
| b84487336b | |||
| e4ab103c4d | |||
| 3b6cf0252b | |||
| e908cd3085 | |||
| 6b23fdbd26 | |||
| ea6258ff19 |
@@ -22,6 +22,7 @@ jobs:
|
|||||||
- name: Check out repository code
|
- name: Check out repository code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
|
token: ${{ secrets.TOKEN }}
|
||||||
lfs: false
|
lfs: false
|
||||||
- name: Remove buggy pre-push hook
|
- name: Remove buggy pre-push hook
|
||||||
run: |
|
run: |
|
||||||
@@ -39,29 +40,22 @@ jobs:
|
|||||||
|
|
||||||
Test:
|
Test:
|
||||||
runs-on: godot
|
runs-on: godot
|
||||||
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@v6
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
|
token: ${{ secrets.TOKEN }}
|
||||||
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
|
||||||
echo coucou
|
|
||||||
AUTH=$(git config http.${{ gitea.server_url }}/.extraheader)
|
AUTH=$(git config http.${{ gitea.server_url }}/.extraheader)
|
||||||
AUTH_FILE=$(git config includeif.gitdir:/workspace/${{ gitea.repository }}/.git.path)
|
git config --local --unset http.${{ github.server_url }}/.extraheader
|
||||||
git config -f $AUTH_FILE --unset http.${{ gitea.server_url }}/.extraheader
|
git config --local http.${{ github.server_url }}/${{ github.repository }}.git/info/lfs/objects/batch.extraheader "$AUTH"
|
||||||
echo sandwich
|
|
||||||
git config -f $AUTH_FILE http.${{ gitea.server_url }}/${{ gitea.repository }}.git/info/lfs/objects/batch.extraheader "$AUTH"
|
|
||||||
echo bite
|
|
||||||
git lfs pull
|
git lfs pull
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
@@ -85,78 +79,62 @@ jobs:
|
|||||||
|
|
||||||
Export:
|
Export:
|
||||||
runs-on: godot
|
runs-on: godot
|
||||||
env:
|
# env:
|
||||||
RUNNER_TOOL_CACHE: /toolcache # Runner Tool Cache
|
# RUNNER_TOOL_CACHE: /toolcache # Runner Tool Cache
|
||||||
# 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 curl and zip
|
|
||||||
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: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
|
token: ${{ secrets.TOKEN }}
|
||||||
lfs: false
|
lfs: false
|
||||||
persist-credentials: true
|
persist-credentials: true
|
||||||
|
|
||||||
- name: Checkout LFS
|
- name: Create Git LFS file list
|
||||||
run: |
|
run: git lfs ls-files -l |cut -d' ' -f1 |sort >.git/lfs-hashes.txt
|
||||||
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
|
- name: Restore Git LFS object cache
|
||||||
|
uses: actions/cache@v5
|
||||||
/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
|
|
||||||
with:
|
with:
|
||||||
dotnet-version: '9.x'
|
path: .git/lfs
|
||||||
|
key: ${{ runner.os }}-lfsdata-v1-${{ hashFiles('.git/lfs-hashes.txt') }}
|
||||||
- name: Import resources and build solution
|
restore-keys: |
|
||||||
|
${{ runner.os }}-lfsdata-v1-
|
||||||
|
${{ runner.os }}-lfsdata
|
||||||
|
|
||||||
|
- name: Setup LFS
|
||||||
run: |
|
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
|
- 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:
|
||||||
|
|||||||
Reference in New Issue
Block a user