Skip to content

Commit

Permalink
try to get windows artifact download and testing
Browse files Browse the repository at this point in the history
  • Loading branch information
enetheru committed Mar 11, 2024
1 parent c7fc153 commit 1b0b157
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/ci-cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,37 @@ jobs:
run:
cmake --build build -j $(nproc)

# Perform testing
- name: Download latest Godot artifacts
uses: dsnopek/action-download-artifact@1322f74e2dac9feed2ee76a32d9ae1ca3b4cf4e9
with:
repo: godotengine/godot
branch: master
event: push
workflow: windows_builds.yml
workflow_conclusion: success
name: windows-editor
search_artifacts: true
check_artifacts: true
ensure_latest: true
path: godot-artifacts

- name: Run tests
run: |
chmod +x ./godot-artifacts/godot.windows.editor.x86_64.exe
./godot-artifacts/godot.windows.editor.x86_64.exe --headless --version
cd test
# Need to run the editor so .godot is generated... but it crashes! Ignore that :-)
(cd project && (timeout 10 ../../godot-artifacts/godot.windows.editor.x86_64.exe --editor --headless --quit >/dev/null 2>&1 || true))
GODOT=../godot-artifacts/godot.windows.editor.x86_64.exe ./run-tests.sh
# - name: Upload artifact
#uses: actions/upload-artifact@v3
#with:
#name: ${{ matrix.platforms.artifact-name }}-${{ matrix.builder.name }}
#path: ${{ matrix.builder.artifact-dir}}${{ matrix.platforms.artifact-path }}
#if-no-files-found: error
build:
name: ${{ matrix.icon }} ${{ matrix.platform }}(${{matrix.arch}}, ${{ matrix.compiler }} ${{ matrix.extra_label }})
runs-on: ${{ matrix.runner }}
Expand Down

0 comments on commit 1b0b157

Please sign in to comment.