mirror of
https://github.com/lihop/godot-xterm.git
synced 2024-11-22 09:40:25 +01:00
Run test job
But tests still disabled.
This commit is contained in:
parent
420c774a43
commit
969c20197a
1 changed files with 34 additions and 27 deletions
61
.github/workflows/main.yml
vendored
61
.github/workflows/main.yml
vendored
|
@ -6,7 +6,7 @@ on:
|
||||||
- cron: 0 11 * * *
|
- cron: 0 11 * * *
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
import_assets:
|
import-assets:
|
||||||
name: "Import Assets"
|
name: "Import Assets"
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
|
@ -29,11 +29,11 @@ jobs:
|
||||||
- name: Upload imports
|
- name: Upload imports
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: imports-${{ matrix.os }}
|
name: imports-${{ matrix.platform }}
|
||||||
path: .godot/
|
path: .godot/
|
||||||
|
|
||||||
build_docker:
|
build-linux:
|
||||||
name: Build Docker (linux, ${{ matrix.arch }}, ${{ matrix.target }})
|
name: Build (linux, ${{ matrix.arch }}, ${{ matrix.target }})
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
@ -73,8 +73,8 @@ jobs:
|
||||||
path: |
|
path: |
|
||||||
addons/godot_xterm/native/bin/*.so
|
addons/godot_xterm/native/bin/*.so
|
||||||
|
|
||||||
build_native:
|
build-other-platforms:
|
||||||
name: Build Native (${{ matrix.platform }}, ${{ matrix.arch }}, ${{ matrix.target}})
|
name: Build (${{ matrix.platform }}, ${{ matrix.arch }}, ${{ matrix.target}})
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
@ -195,10 +195,10 @@ jobs:
|
||||||
addons/godot_xterm/native/bin/*.dylib
|
addons/godot_xterm/native/bin/*.dylib
|
||||||
addons/godot_xterm/native/bin/*.dll
|
addons/godot_xterm/native/bin/*.dll
|
||||||
|
|
||||||
html5_export:
|
html5-export:
|
||||||
if: false # Temporarily disabled.
|
if: false # Temporarily disabled.
|
||||||
name: "HTML5 Export"
|
name: "HTML5 Export"
|
||||||
needs: [build_docker, build_native]
|
needs: [build-linux]
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
@ -246,15 +246,17 @@ jobs:
|
||||||
path: docs/demo
|
path: docs/demo
|
||||||
|
|
||||||
test:
|
test:
|
||||||
if: false # Temporarily disabled.
|
name: Test (${{ matrix.platform }}, ${{ matrix.arch }}, release)
|
||||||
name: "Test"
|
needs: [check-archive, check-pre-commit]
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
platform: [linux, macos, windows]
|
platform: [linux, macos, windows]
|
||||||
bits: [64, 32]
|
bits: [64, 32]
|
||||||
godot_version: ["v4.2.1-stable"]
|
exclude:
|
||||||
|
- platform: macos
|
||||||
|
bits: 32
|
||||||
include:
|
include:
|
||||||
- platform: linux
|
- platform: linux
|
||||||
os: ubuntu-22.04
|
os: ubuntu-22.04
|
||||||
|
@ -262,16 +264,26 @@ jobs:
|
||||||
os: macos-12
|
os: macos-12
|
||||||
- platform: windows
|
- platform: windows
|
||||||
os: windows-2022
|
os: windows-2022
|
||||||
exclude:
|
- platform: linux
|
||||||
- platform: macos
|
bits: 64
|
||||||
|
arch: x86_64
|
||||||
|
- platform: linux
|
||||||
bits: 32
|
bits: 32
|
||||||
|
arch: x86_32
|
||||||
|
- platform: macos
|
||||||
|
arch: universal
|
||||||
|
- platform: windows
|
||||||
|
bits: 64
|
||||||
|
arch: x86_64
|
||||||
|
- platform: windows
|
||||||
|
bits: 32
|
||||||
|
arch: x86_32
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Setup Godot
|
- name: Setup Godot
|
||||||
uses: lihop/setup-godot@v2
|
uses: lihop/setup-godot@v2
|
||||||
with:
|
with:
|
||||||
version: ${{ matrix.godot_version }}
|
version: "4.2.1-stable"
|
||||||
bits: ${{ matrix.bits }}
|
|
||||||
- name: Wait for asset import
|
- name: Wait for asset import
|
||||||
uses: fountainhead/action-wait-for-check@v1.1.0
|
uses: fountainhead/action-wait-for-check@v1.1.0
|
||||||
with:
|
with:
|
||||||
|
@ -281,29 +293,24 @@ jobs:
|
||||||
- name: Download imports
|
- name: Download imports
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: imports-${{ matrix.os }}
|
name: imports-${{ matrix.platform }}
|
||||||
path: .godot
|
path: .godot
|
||||||
- name: Wait for build
|
- name: Wait for build
|
||||||
uses: fountainhead/action-wait-for-check@v1.1.0
|
uses: fountainhead/action-wait-for-check@v1.1.0
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
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 }}
|
ref: ${{ github.event.pull_request.head.sha || github.sha }}
|
||||||
- name: Install debug binary build artifacts
|
- name: Install binary build artifacts
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: libgodot-xterm-debug
|
name: libgodot-xterm-release
|
||||||
path: addons/godot_xterm/native/bin
|
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:
|
delete-asset-imports:
|
||||||
name: "Delete Imports"
|
name: Delete Asset Imports
|
||||||
needs: [test]
|
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
|
needs: [import-assets, test]
|
||||||
steps:
|
steps:
|
||||||
- uses: geekyeggo/delete-artifact@v2
|
- uses: geekyeggo/delete-artifact@v2
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Reference in a new issue