Skip to content

Commit

Permalink
Run test job
Browse files Browse the repository at this point in the history
But tests still disabled.
  • Loading branch information
lihop committed Feb 13, 2024
1 parent 420c774 commit 2894890
Showing 1 changed file with 31 additions and 25 deletions.
56 changes: 31 additions & 25 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- cron: 0 11 * * *

jobs:
import_assets:
import-assets:
name: "Import Assets"
runs-on: ${{ matrix.os }}
strategy:
Expand All @@ -29,11 +29,11 @@ jobs:
- name: Upload imports
uses: actions/upload-artifact@v3
with:
name: imports-${{ matrix.os }}
name: imports-${{ matrix.platform }}
path: .godot/

build_docker:
name: Build Docker (linux, ${{ matrix.arch }}, ${{ matrix.target }})
build-linux:
name: Build (linux, ${{ matrix.arch }}, ${{ matrix.target }})
runs-on: ubuntu-22.04
strategy:
fail-fast: false
Expand Down Expand Up @@ -73,8 +73,8 @@ jobs:
path: |
addons/godot_xterm/native/bin/*.so
build_native:
name: Build Native (${{ matrix.platform }}, ${{ matrix.arch }}, ${{ matrix.target}})
build-other-platforms:
name: Build (${{ matrix.platform }}, ${{ matrix.arch }}, ${{ matrix.target}})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand Down Expand Up @@ -195,10 +195,10 @@ jobs:
addons/godot_xterm/native/bin/*.dylib
addons/godot_xterm/native/bin/*.dll
html5_export:
html5-export:
if: false # Temporarily disabled.
name: "HTML5 Export"
needs: [build_docker, build_native]
needs: [build-linux]
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -246,32 +246,43 @@ jobs:
path: docs/demo

test:
if: false # Temporarily disabled.
name: "Test"
name: Test (${{ matrix.platform }}, ${{ matrix.arch }}, release)
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
platform: [linux, macos, windows]
bits: [64, 32]
godot_version: ["v4.2.1-stable"]
exclude:
- platform: macos
bits: 32
include:
- platform: linux
os: ubuntu-22.04
- platform: macos
os: macos-12
- platform: windows
os: windows-2022
exclude:
- platform: linux
bits: 64
arch: x86_64
- platform: linux
bits: 32
arch: x86_32
- platform: macos
arch: universal
- platform: windows
bits: 64
arch: x86_64
- platform: linux
bits: 32
arch: x86_32
steps:
- uses: actions/checkout@v4
- name: Setup Godot
uses: lihop/setup-godot@v2
with:
version: ${{ matrix.godot_version }}
bits: ${{ matrix.bits }}
version: "4.2.1-stable"
- name: Wait for asset import
uses: fountainhead/[email protected]
with:
Expand All @@ -281,29 +292,24 @@ jobs:
- name: Download imports
uses: actions/download-artifact@v3
with:
name: imports-${{ matrix.os }}
name: imports-${{ matrix.platform }}
path: .godot
- name: Wait for build
uses: fountainhead/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
checkName: Build Docker (linux, x86_${{ matrix.bits }}, debug)
checkName: Build (${{ matrix.platform }}, ${{ matrix.arch }}, release)
ref: ${{ github.event.pull_request.head.sha || github.sha }}
- name: Install debug binary build artifacts
- name: Install binary build artifact
uses: actions/download-artifact@v3
with:
name: libgodot-xterm-debug
path: addons/godot_xterm/native/bin
- name: Run tests
run: godot -s addons/gut/gut_cmdln.gd -gconfig=test/.gutconfig.ci.json
- name: Run unix tests
if: ${{ matrix.os != 'windows-2022' }}
run: godot -s addons/gut/gut_cmdln.gd -gconfig=test/.gutconfig.unix.json

delete_imports:
name: "Delete Imports"
needs: [test]
delete-asset-imports:
name: Delete Asset Imports
runs-on: ubuntu-22.04
needs: [import-assets, test]
steps:
- uses: geekyeggo/delete-artifact@v2
with:
Expand Down

0 comments on commit 2894890

Please sign in to comment.