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:
Leroy Hopson 2024-04-01 09:36:10 +13:00
parent ff95b60a56
commit 5232d24e6f
No known key found for this signature in database
GPG key ID: D2747312A6DB51AA

View file

@ -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: