mirror of
https://github.com/lihop/godot-xterm.git
synced 2024-11-22 01:30:25 +01:00
fix(ci): wait for linux binaries when exporting to web
Ensures we have both the linux and wasm binaries when exporting to web. The linux binaries are required as the host system uses linux and will fail to identify the GDExtension node types (PTY, Terminal) leading to the export not including them. Also removes the retry action as the initial export command was not returning an error exit code anyway.
This commit is contained in:
parent
ff95b60a56
commit
5232d24e6f
1 changed files with 9 additions and 7 deletions
16
.github/workflows/main.yml
vendored
16
.github/workflows/main.yml
vendored
|
@ -189,24 +189,26 @@ jobs:
|
||||||
export-templates: true
|
export-templates: true
|
||||||
- name: Import assets
|
- name: Import assets
|
||||||
run: godot --editor --headless --quit-after 100 || true
|
run: godot --editor --headless --quit-after 100 || true
|
||||||
- name: Wait for build
|
- name: Wait for wasm build
|
||||||
uses: fountainhead/action-wait-for-check@v1.2.0
|
uses: fountainhead/action-wait-for-check@v1.2.0
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
checkName: "Build (web, wasm32, release) #${{ github.run_number }}/${{ github.run_attempt }}"
|
checkName: "Build (web, wasm32, release) #${{ github.run_number }}/${{ github.run_attempt }}"
|
||||||
ref: ${{ github.event.pull_request.head.sha || github.sha }}
|
ref: ${{ github.event.pull_request.head.sha || github.sha }}
|
||||||
|
- name: Wait for linux build # Required for linux-based editor to recognize the GDExtension node types.
|
||||||
|
uses: fountainhead/action-wait-for-check@v1.2.0
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
checkName: "Build (linux, x86_64, debug) #${{ github.run_number }}/${{ github.run_attempt }}"
|
||||||
|
ref: ${{ github.event.pull_request.head.sha || github.sha }}
|
||||||
- name: Install binary build artifacts
|
- name: Install binary build artifacts
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
path: addons/godot_xterm/native/bin
|
path: addons/godot_xterm/native/bin
|
||||||
merge-multiple: true
|
merge-multiple: true
|
||||||
- name: Export for web
|
- name: Export for web
|
||||||
uses: nick-fields/retry@v3
|
shell: bash
|
||||||
with:
|
run: godot --no-window --export-release Web
|
||||||
command: godot --no-window --export-release Web
|
|
||||||
retry_on: error
|
|
||||||
timeout_minutes: 5
|
|
||||||
max_attempts: 6
|
|
||||||
- name: NPM cache
|
- name: NPM cache
|
||||||
uses: c-hive/gha-npm-cache@v1
|
uses: c-hive/gha-npm-cache@v1
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Reference in a new issue