mirror of
https://github.com/lihop/godot-xterm.git
synced 2024-11-24 02:20:24 +01:00
Update upload-artifact action
This commit is contained in:
parent
9b6bb0a9e9
commit
4fec353509
1 changed files with 33 additions and 12 deletions
45
.github/workflows/main.yml
vendored
45
.github/workflows/main.yml
vendored
|
@ -52,11 +52,10 @@ jobs:
|
||||||
working-directory: addons/godot_xterm/native
|
working-directory: addons/godot_xterm/native
|
||||||
run: UID_GID="$(id -u):$(id -g)" docker-compose run -e TARGET=${{ matrix.target }} -e BITS=${{ matrix.bits }} libgodot-xterm-linux
|
run: UID_GID="$(id -u):$(id -g)" docker-compose run -e TARGET=${{ matrix.target }} -e BITS=${{ matrix.bits }} libgodot-xterm-linux
|
||||||
- name: Upload binaries
|
- name: Upload binaries
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: libgodot-xterm-${{ matrix.target }}
|
name: libgodot-xterm-linux-${{ matrix.bits }}-${{ matrix.target }}
|
||||||
path: |
|
path: addons/godot_xterm/native/bin/*.so
|
||||||
addons/godot_xterm/native/bin/*.so
|
|
||||||
|
|
||||||
build_native:
|
build_native:
|
||||||
name: "Build Native"
|
name: "Build Native"
|
||||||
|
@ -162,9 +161,9 @@ jobs:
|
||||||
cd addons/godot_xterm/native
|
cd addons/godot_xterm/native
|
||||||
scons platform=${{ matrix.platform }} target=${{ matrix.target }} bits=${{ matrix.bits }} -j2
|
scons platform=${{ matrix.platform }} target=${{ matrix.target }} bits=${{ matrix.bits }} -j2
|
||||||
- name: Upload binaries
|
- name: Upload binaries
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: libgodot-xterm-${{ matrix.target }}
|
name: libgodot-xterm-${{ matrix.platform }}-${{ matrix.bits }}-${{ matrix.target }}
|
||||||
path: |
|
path: |
|
||||||
addons/godot_xterm/native/bin/*.wasm
|
addons/godot_xterm/native/bin/*.wasm
|
||||||
addons/godot_xterm/native/bin/*.dylib
|
addons/godot_xterm/native/bin/*.dylib
|
||||||
|
@ -181,9 +180,9 @@ jobs:
|
||||||
with:
|
with:
|
||||||
export-templates: true
|
export-templates: true
|
||||||
- name: Install binary build artifacts
|
- name: Install binary build artifacts
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: libgodot-xterm-release
|
name: libgodot-xterm-javascript-32-release
|
||||||
path: addons/godot_xterm/native/bin
|
path: addons/godot_xterm/native/bin
|
||||||
- name: Import assets
|
- name: Import assets
|
||||||
uses: nick-fields/retry@v3
|
uses: nick-fields/retry@v3
|
||||||
|
@ -212,7 +211,7 @@ jobs:
|
||||||
npx serve ../../docs/demo -p 3000 &
|
npx serve ../../docs/demo -p 3000 &
|
||||||
npx cypress run
|
npx cypress run
|
||||||
- name: Upload cypress artifacts (on failure)
|
- name: Upload cypress artifacts (on failure)
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
if: ${{ failure() }}
|
if: ${{ failure() }}
|
||||||
with:
|
with:
|
||||||
name: cypress-artifacts
|
name: cypress-artifacts
|
||||||
|
@ -220,7 +219,7 @@ jobs:
|
||||||
test/html5/cypress/screenshots
|
test/html5/cypress/screenshots
|
||||||
test/html5/cypress/videos
|
test/html5/cypress/videos
|
||||||
- name: Upload export
|
- name: Upload export
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: html5-demo
|
name: html5-demo
|
||||||
path: docs/demo
|
path: docs/demo
|
||||||
|
@ -235,6 +234,13 @@ jobs:
|
||||||
os: [windows-2022, macos-12, ubuntu-22.04]
|
os: [windows-2022, macos-12, ubuntu-22.04]
|
||||||
bits: [64, 32]
|
bits: [64, 32]
|
||||||
godot_version: ["v3.4.5-stable", "v3.5-stable"]
|
godot_version: ["v3.4.5-stable", "v3.5-stable"]
|
||||||
|
include:
|
||||||
|
- os: ubuntu-22.04
|
||||||
|
platform: "linux"
|
||||||
|
- os: macos-12
|
||||||
|
platform: "osx"
|
||||||
|
- os: windows-2022
|
||||||
|
platform: "windows"
|
||||||
exclude:
|
exclude:
|
||||||
- os: macos-12
|
- os: macos-12
|
||||||
bits: 32
|
bits: 32
|
||||||
|
@ -246,9 +252,9 @@ jobs:
|
||||||
version: ${{ matrix.godot_version }}
|
version: ${{ matrix.godot_version }}
|
||||||
bits: ${{ matrix.bits }}
|
bits: ${{ matrix.bits }}
|
||||||
- name: Install binary build artifacts
|
- name: Install binary build artifacts
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: libgodot-xterm-release
|
name: libgodot-xterm-${{ matrix.platform}}-${{ matrix.bits }}-release
|
||||||
path: addons/godot_xterm/native/bin
|
path: addons/godot_xterm/native/bin
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
uses: nick-fields/retry@v3
|
uses: nick-fields/retry@v3
|
||||||
|
@ -267,6 +273,21 @@ jobs:
|
||||||
timeout_minutes: 5
|
timeout_minutes: 5
|
||||||
max_attempts: 6
|
max_attempts: 6
|
||||||
|
|
||||||
|
merge_artifacts:
|
||||||
|
name: "Merge ${{ matrix.target }} artifacts"
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: test
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
target: [release, debug]
|
||||||
|
steps:
|
||||||
|
- name: Merge artifacts
|
||||||
|
uses: actions/upload-artifact/merge@v4
|
||||||
|
with:
|
||||||
|
name: libgodot-xterm-${{ matrix.target }}
|
||||||
|
pattern: "*-${{ matrix.target }}"
|
||||||
|
delete-merged: true
|
||||||
|
|
||||||
# Git archive should only include addons/godot_xterm directory.
|
# Git archive should only include addons/godot_xterm directory.
|
||||||
check-archive:
|
check-archive:
|
||||||
name: "Check Archive"
|
name: "Check Archive"
|
||||||
|
|
Loading…
Reference in a new issue