Compare commits
13 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 9ba8847626 | |||
| 51b7328310 | |||
| fdc352596d | |||
| 89ba5cc985 | |||
| fdc79166a0 | |||
| b84487336b | |||
| e4ab103c4d | |||
| 3b6cf0252b | |||
| e908cd3085 | |||
| 6b23fdbd26 | |||
| ea6258ff19 | |||
| 5e54f0f83b | |||
| f00439a430 |
@@ -10,44 +10,22 @@ on:
|
|||||||
- "**"
|
- "**"
|
||||||
|
|
||||||
env:
|
env:
|
||||||
|
GODOT_VERSION: 4.6
|
||||||
GAME_NAME: MovementTests
|
GAME_NAME: MovementTests
|
||||||
ITCHIO_USERNAME: Minimata
|
ITCHIO_USERNAME: Minimata
|
||||||
ITCHIO_GAMEID: MovementTests
|
ITCHIO_GAMEID: MovementTests
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Export:
|
Export:
|
||||||
runs-on: ubuntu-latest
|
runs-on: godot
|
||||||
env:
|
|
||||||
RUNNER_TOOL_CACHE: /toolcache # Runner Tool Cache
|
|
||||||
steps:
|
steps:
|
||||||
- name: Install node, xvfb and curl
|
- name: Checkout with LFS
|
||||||
run: |
|
uses: https://git.game-dev.space/minimata/checkout-with-lfs.git@main
|
||||||
apt update && apt -y install curl nodejs xvfb
|
|
||||||
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
with:
|
|
||||||
lfs: false
|
|
||||||
|
|
||||||
- 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: Run tests
|
- name: Run tests
|
||||||
uses: godot-gdunit-labs/gdUnit4-action@v1
|
uses: godot-gdunit-labs/gdUnit4-action@v1
|
||||||
with:
|
with:
|
||||||
godot-version: '4.6.0'
|
godot-version: ${GODOT_VERSION}
|
||||||
godot-net: true
|
godot-net: true
|
||||||
godot-force-mono: true
|
godot-force-mono: true
|
||||||
dotnet-version: 'net9.0'
|
dotnet-version: 'net9.0'
|
||||||
@@ -56,9 +34,9 @@ jobs:
|
|||||||
timeout: 1
|
timeout: 1
|
||||||
publish-report: false
|
publish-report: false
|
||||||
upload-report: false
|
upload-report: false
|
||||||
|
|
||||||
- name: Upload test report
|
- name: Upload test report
|
||||||
uses: actions/upload-artifact@v3-node20
|
uses: actions/upload-artifact@v6
|
||||||
with:
|
with:
|
||||||
name: Test Report
|
name: Test Report
|
||||||
path: ${{ github.workspace }}/reports/test-result.html
|
path: ${{ github.workspace }}/reports/test-result.html
|
||||||
@@ -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,33 +40,11 @@ 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
|
- name: Checkout with LFS
|
||||||
# run: |
|
uses: https://git.game-dev.space/minimata/checkout-with-lfs.git@main
|
||||||
# apt update && apt -y install curl nodejs xvfb
|
|
||||||
|
|
||||||
- name: Checkout
|
|
||||||
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: Run tests
|
- name: Run tests
|
||||||
uses: godot-gdunit-labs/gdUnit4-action@v1
|
uses: godot-gdunit-labs/gdUnit4-action@v1
|
||||||
@@ -81,91 +60,55 @@ jobs:
|
|||||||
upload-report: false
|
upload-report: false
|
||||||
|
|
||||||
- name: Upload test report
|
- name: Upload test report
|
||||||
uses: actions/upload-artifact@v3-node20
|
uses: actions/upload-artifact@v6
|
||||||
with:
|
with:
|
||||||
name: Test Report
|
name: Test Report
|
||||||
path: ${{ github.workspace }}/reports/test-result.html
|
path: ${{ github.workspace }}/reports/test-result.html
|
||||||
|
|
||||||
Export:
|
Export:
|
||||||
runs-on: godot
|
runs-on: godot
|
||||||
env:
|
needs:
|
||||||
RUNNER_TOOL_CACHE: /toolcache # Runner Tool Cache
|
- BumpTag
|
||||||
# needs:
|
|
||||||
# - BumpTag
|
|
||||||
# - Test # Wait for tests to finish
|
|
||||||
container:
|
|
||||||
image: barichello/godot-ci:mono-4.6
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Install curl and zip
|
- name: Checkout with LFS
|
||||||
run: |
|
uses: https://git.game-dev.space/minimata/checkout-with-lfs.git@main
|
||||||
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: Setup Godot
|
||||||
uses: actions/checkout@v6
|
id: setup-godot
|
||||||
|
uses: https://git.game-dev.space/minimata/setup-godot.git@main
|
||||||
with:
|
with:
|
||||||
lfs: false
|
godot-version: '4.6'
|
||||||
persist-credentials: true
|
dotnet-version: 'net9.0'
|
||||||
|
|
||||||
- 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
|
|
||||||
# with:
|
|
||||||
# lfs: false
|
|
||||||
# persist-credentials: true
|
|
||||||
|
|
||||||
# - name: Checkout LFS
|
- name: Remove GDUnit addon
|
||||||
# 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:
|
|
||||||
dotnet-version: '9.x'
|
|
||||||
|
|
||||||
- name: Import resources and build solution
|
|
||||||
run: |
|
run: |
|
||||||
godot --headless --editor --build-solutions --quit --import --path $PWD
|
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
|
ls -la
|
||||||
uses: KikimoraGames/itch-publish@v0.0.3
|
pwd
|
||||||
|
echo ${{ github.workspace }}
|
||||||
|
- name: Upload build to Itch
|
||||||
|
uses: https://github.com/Oval-Tutu/publish-to-itch-with-butler.git@main
|
||||||
with:
|
with:
|
||||||
butlerApiKey: ${{ secrets.BUTLER_TOKEN }}
|
api-key: ${{ secrets.BUTLER_TOKEN }}
|
||||||
itchUsername: ${{ env.ITCHIO_USERNAME }}
|
itch_user: ${{ env.ITCHIO_USERNAME }}
|
||||||
itchGameId: ${{ env.ITCHIO_GAMEID }}
|
itch_game: ${{ env.ITCHIO_GAMEID }}
|
||||||
buildNumber: 0.1.0 # ${{ needs.BumpTag.outputs.tag_name }}
|
channel: windows
|
||||||
gameData: Windows.zip
|
package: Windows.zip
|
||||||
buildChannel: windows
|
version: ${{ needs.BumpTag.outputs.tag_name }}
|
||||||
|
|
||||||
|
# - name: Upload to Itch
|
||||||
|
# uses: KikimoraGames/itch-publish@v0.0.3
|
||||||
|
# with:
|
||||||
|
# butlerApiKey: ${{ secrets.BUTLER_TOKEN }}
|
||||||
|
# itchUsername: ${{ env.ITCHIO_USERNAME }}
|
||||||
|
# itchGameId: ${{ env.ITCHIO_GAMEID }}
|
||||||
|
# buildNumber: 0.1.0 # ${{ needs.BumpTag.outputs.tag_name }}
|
||||||
|
# gameData: ${{ github.workspace }}/Windows.zip
|
||||||
|
# buildChannel: windows
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ on:
|
|||||||
- "**"
|
- "**"
|
||||||
|
|
||||||
env:
|
env:
|
||||||
|
GODOT_VERSION: 4.6
|
||||||
GAME_NAME: MovementTests
|
GAME_NAME: MovementTests
|
||||||
ITCHIO_USERNAME: Minimata
|
ITCHIO_USERNAME: Minimata
|
||||||
ITCHIO_GAMEID: MovementTests
|
ITCHIO_GAMEID: MovementTests
|
||||||
@@ -26,42 +27,20 @@ jobs:
|
|||||||
separator: '/'
|
separator: '/'
|
||||||
|
|
||||||
Release:
|
Release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: godot
|
||||||
if: ${{ contains(gitea.ref_name, 'release/') }}
|
if: ${{ contains(gitea.ref_name, 'release/') }}
|
||||||
needs: ReleaseName
|
needs: ReleaseName
|
||||||
env:
|
|
||||||
RUNNER_TOOL_CACHE: /toolcache # Runner Tool Cache
|
|
||||||
container:
|
|
||||||
image: barichello/godot-ci:mono-4.6
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Install node, curl and zip
|
- name: Checkout with LFS
|
||||||
run: |
|
uses: https://git.game-dev.space/minimata/checkout-with-lfs.git@main
|
||||||
apt update && apt -y install curl zip nodejs
|
|
||||||
|
|
||||||
- name: Checkout
|
- name: Setup Godot
|
||||||
uses: actions/checkout@v3
|
id: setup-godot
|
||||||
|
uses: https://git.game-dev.space/minimata/setup-godot.git@main
|
||||||
with:
|
with:
|
||||||
lfs: false
|
godot-version: '4.6'
|
||||||
|
dotnet-version: 'net9.0'
|
||||||
- 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: Import resources and build solution
|
|
||||||
run: |
|
|
||||||
godot --headless --editor --build-solutions --quit --import --path $PWD
|
|
||||||
|
|
||||||
- name: Build Windows
|
- name: Build Windows
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user