2021-07-18 14:15:08 +02:00
|
|
|
name: 'Build and Test'
|
2020-11-06 06:57:25 +01:00
|
|
|
|
2021-07-07 17:07:27 +02:00
|
|
|
on: [ push ]
|
2020-11-06 06:57:25 +01:00
|
|
|
|
2021-07-20 02:27:07 +02:00
|
|
|
env:
|
|
|
|
GODOT: Godot_v3.3.2-stable
|
|
|
|
GODOT_VERSION: 3.3.2
|
|
|
|
GODOT_RELEASE: stable
|
|
|
|
|
|
|
|
# Caches should be automatically invalidated when versions change,
|
|
|
|
# but invalidation can be forced by incrementing these numbers.
|
|
|
|
EMSCRIPTEN_CACHE_VERSION: 1
|
|
|
|
EXPORT_TEMPLATE_CACHE_VERSION: 1
|
|
|
|
GODOT_CACHE_VERSION: 1
|
|
|
|
GODOT_CPP_CACHE_VERSION: 1
|
|
|
|
LIBUV_CACHE_VERSION: 1
|
|
|
|
|
2020-11-06 06:57:25 +01:00
|
|
|
jobs:
|
2020-11-22 16:16:38 +01:00
|
|
|
build:
|
2021-07-18 14:15:08 +02:00
|
|
|
name: 'Build'
|
2020-11-20 15:34:49 +01:00
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
2021-07-02 20:17:02 +02:00
|
|
|
fail-fast: false
|
2020-11-20 15:34:49 +01:00
|
|
|
matrix:
|
2021-06-07 08:53:43 +02:00
|
|
|
platform: [ linux, javascript, osx, windows ]
|
2020-11-22 16:16:38 +01:00
|
|
|
target: [ release, debug ]
|
2020-11-20 15:34:49 +01:00
|
|
|
bits: [ 64, 32 ]
|
|
|
|
include:
|
|
|
|
- platform: linux
|
|
|
|
os: ubuntu-latest
|
2021-06-07 08:53:43 +02:00
|
|
|
- platform: javascript
|
|
|
|
os: ubuntu-latest
|
2020-11-20 15:34:49 +01:00
|
|
|
- platform: osx
|
|
|
|
os: macos-latest
|
|
|
|
- platform: windows
|
|
|
|
os: windows-latest
|
|
|
|
exclude:
|
2021-06-07 08:53:43 +02:00
|
|
|
- platform: javascript
|
|
|
|
bits: 64 # Currently only wasm32 is supported.
|
2020-11-20 15:34:49 +01:00
|
|
|
- platform: osx
|
|
|
|
bits: 32 # Only 64-bit supported on macOS.
|
2020-11-10 04:04:08 +01:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
submodules: recursive
|
2020-11-20 15:34:49 +01:00
|
|
|
|
|
|
|
- name: Get godot-cpp submodule commit hash
|
|
|
|
shell: bash
|
|
|
|
env:
|
|
|
|
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
|
2020-11-10 04:04:08 +01:00
|
|
|
run: |
|
2021-06-12 10:02:22 +02:00
|
|
|
echo ::set-env name=GODOT_CPP_COMMIT_HASH::$(git ls-tree HEAD addons/godot_xterm/native/thirdparty/godot-cpp -l | cut -d\ -f3)
|
2020-11-20 15:34:49 +01:00
|
|
|
- name: Cache godot-cpp bindings
|
|
|
|
uses: actions/cache@v2
|
|
|
|
id: cache
|
|
|
|
env:
|
|
|
|
cache-name: cache-godot-cpp
|
2020-11-10 04:04:08 +01:00
|
|
|
with:
|
2021-06-12 10:02:22 +02:00
|
|
|
path: addons/godot_xterm/native/thirdparty/godot-cpp
|
2021-07-20 02:27:07 +02:00
|
|
|
key: godot-cpp-${{ matrix.platform }}-${{ matrix.target }}-${{ matrix.bits }}-${{ env.GODOT_CPP_COMMIT_HASH }}-v${{ env.GODOT_CPP_CACHE_VERSION }}
|
2021-07-02 19:27:34 +02:00
|
|
|
- name: Get libuv submodule commit hash
|
|
|
|
shell: bash
|
|
|
|
env:
|
|
|
|
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
|
|
|
|
run: |
|
|
|
|
echo ::set-env name=LIBUV_COMMIT_HASH::$(git ls-tree HEAD addons/godot_xterm/native/thirdparty/libuv -l | cut -d\ -f3)
|
|
|
|
- name: Cache libuv
|
|
|
|
uses: actions/cache@v2
|
|
|
|
id: cache-libuv
|
|
|
|
with:
|
|
|
|
path: addons/godot_xterm/native/thirdparty/libuv
|
2021-07-20 02:27:07 +02:00
|
|
|
key: libuv-cache-${{ matrix.platform }}-${{ matrix.target }}-${{ matrix.bits }}-${{ env.LIBUV_COMMIT_HASH }}-v${{ env.LIBUV_CACHE_VERSION }}
|
2021-06-07 08:53:43 +02:00
|
|
|
- name: Cache emscripten
|
|
|
|
if: ${{ matrix.platform == 'javascript' }}
|
|
|
|
uses: actions/cache@v2
|
|
|
|
env:
|
|
|
|
cache-name: cache-emscripten
|
|
|
|
with:
|
|
|
|
path: addons/godot_xterm/native/.emcache
|
2021-07-20 02:27:07 +02:00
|
|
|
key: emsdk-cache-${{ matrix.target }}-v${{ env.EMSCRIPTEN_CACHE_VERSION }}
|
2020-11-20 15:34:49 +01:00
|
|
|
|
2020-11-22 16:16:38 +01:00
|
|
|
# Ubuntu-specific steps.
|
2020-11-20 15:34:49 +01:00
|
|
|
- name: Install ubuntu build dependencies
|
|
|
|
if: ${{ matrix.os == 'ubuntu-latest' }}
|
|
|
|
run: sudo apt-get install -y scons gcc-multilib g++-multilib
|
|
|
|
|
2021-06-07 08:53:43 +02:00
|
|
|
# JavaScript-specific steps.
|
|
|
|
- name: Install javascript build dependencies
|
|
|
|
if: ${{ matrix.platform == 'javascript' }}
|
|
|
|
uses: mymindstorm/setup-emsdk@v9
|
|
|
|
with:
|
|
|
|
version: 2.0.10
|
|
|
|
actions-cache-folder: emsdk-cache-${{ matrix.target }}
|
|
|
|
|
2020-11-22 16:16:38 +01:00
|
|
|
# MacOS-specific steps.
|
2020-11-20 15:34:49 +01:00
|
|
|
- name: Install additional macos build dependencies
|
|
|
|
if: ${{ matrix.os == 'macos-latest' }}
|
2020-11-20 03:00:03 +01:00
|
|
|
run: brew install scons
|
2020-11-20 15:34:49 +01:00
|
|
|
|
2020-11-22 16:16:38 +01:00
|
|
|
# Windows-specific steps.
|
2020-11-20 15:34:49 +01:00
|
|
|
- name: Install additional windows build dependencies
|
|
|
|
if: ${{ matrix.os == 'windows-latest' }}
|
2020-11-22 16:45:02 +01:00
|
|
|
run: python -m pip install scons
|
2021-07-03 10:15:01 +02:00
|
|
|
- uses: ilammy/msvc-dev-cmd@v1.9.0
|
2020-11-20 15:34:49 +01:00
|
|
|
if: ${{ matrix.os == 'windows-latest' }}
|
2021-07-03 10:15:01 +02:00
|
|
|
with:
|
|
|
|
arch: win${{ matrix.bits }}
|
2020-11-20 15:34:49 +01:00
|
|
|
|
|
|
|
- name: Build godot-cpp bindings
|
|
|
|
if: steps.cache.outputs.cache-hit != 'true'
|
|
|
|
run: |
|
2021-06-12 10:02:22 +02:00
|
|
|
cd addons/godot_xterm/native/thirdparty/godot-cpp
|
2020-11-22 16:16:38 +01:00
|
|
|
scons platform=${{ matrix.platform }} target=${{ matrix.target }} bits=${{ matrix.bits }} generate_bindings=yes -j2
|
2020-11-20 15:34:49 +01:00
|
|
|
|
2021-07-16 09:31:13 +02:00
|
|
|
- name: Setup cmake
|
|
|
|
if: steps.cache-libuv.outputs.cache-hit != 'true'
|
|
|
|
uses: jwlawson/actions-setup-cmake@v1.9
|
2021-07-02 19:27:34 +02:00
|
|
|
with:
|
2021-07-16 09:31:13 +02:00
|
|
|
cmake-version: '3.15.4'
|
|
|
|
use-32bit: ${{ matrix.bits == 32 && matrix.os == 'windows-latest' }}
|
|
|
|
- name: Build libuv
|
|
|
|
if: steps.cache-libuv.outputs.cache-hit != 'true'
|
|
|
|
shell: bash
|
|
|
|
env:
|
|
|
|
TARGET: ${{ matrix.target }}
|
|
|
|
BITS: ${{ matrix.bits }}
|
|
|
|
OS: ${{ matrix.os }}
|
|
|
|
run: |
|
|
|
|
cd addons/godot_xterm/native/thirdparty/libuv
|
|
|
|
args="-DCMAKE_BUILD_TYPE=$TARGET -DBUILD_SHARED_LIBS=OFF -DCMAKE_POSITION_INDEPENDENT_CODE=TRUE"
|
2021-07-18 11:06:38 +02:00
|
|
|
if [ "$TARGET" == "release" ]; then
|
|
|
|
args="$args -DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreadedDLL"
|
|
|
|
else
|
|
|
|
args="$args -DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreadedDebugDLL"
|
|
|
|
fi
|
2021-07-16 09:31:13 +02:00
|
|
|
if [ "$BITS" -eq 32 -a "$OS" == "windows-latest" ]; then
|
|
|
|
cmake -G "Visual Studio 16 2019" -A Win32 -S $(pwd) -B "build" $args
|
|
|
|
else
|
|
|
|
mkdir build || true
|
|
|
|
cd build
|
|
|
|
if [ "$BITS" -eq 32 ]; then args="$args -DCMAKE_SYSTEM_PROCESSOR=i686 -DCMAKE_C_FLAGS=-m32"; fi
|
|
|
|
cmake .. $args
|
|
|
|
cd ..
|
|
|
|
fi
|
|
|
|
cmake --build build --config $TARGET
|
2021-07-02 19:27:34 +02:00
|
|
|
|
2020-11-20 15:34:49 +01:00
|
|
|
- name: Build libgodot-xterm
|
2020-11-20 03:00:03 +01:00
|
|
|
run: |
|
|
|
|
cd addons/godot_xterm/native
|
2021-07-18 11:06:38 +02:00
|
|
|
scons platform=${{ matrix.platform }} target=${{ matrix.target }} bits=${{ matrix.bits }} -j2
|
2020-11-20 15:34:49 +01:00
|
|
|
|
|
|
|
- name: Upload build artifacts
|
|
|
|
uses: actions/upload-artifact@v2
|
2020-11-20 03:00:03 +01:00
|
|
|
with:
|
2020-11-22 16:56:20 +01:00
|
|
|
name: libgodot-xterm-${{ matrix.target }}
|
2020-11-20 15:34:49 +01:00
|
|
|
path: |
|
|
|
|
addons/godot_xterm/native/bin/*.so
|
2021-06-07 08:53:43 +02:00
|
|
|
addons/godot_xterm/native/bin/*.wasm
|
2020-11-20 15:34:49 +01:00
|
|
|
addons/godot_xterm/native/bin/*.dylib
|
|
|
|
addons/godot_xterm/native/bin/*.dll
|
|
|
|
|
2021-07-20 02:27:07 +02:00
|
|
|
|
|
|
|
# GDNative HTML5 export templates aren't provided so we must build them
|
|
|
|
export_template:
|
|
|
|
name: 'Export Template'
|
|
|
|
runs-on: ubuntu-latest
|
2021-07-18 14:15:08 +02:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
target: [ release, debug ]
|
2021-07-20 02:27:07 +02:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
submodules: recursive
|
|
|
|
- name: Get godot submodule commit hash
|
|
|
|
shell: bash
|
|
|
|
env:
|
|
|
|
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
|
|
|
|
run: |
|
|
|
|
echo ::set-env name=GODOT_COMMIT_HASH::$(git ls-tree HEAD misc/export_templates/godot -l | cut -d\ -f3)
|
|
|
|
- name: Cache export template
|
|
|
|
uses: actions/cache@v2
|
|
|
|
id: cache-export-template
|
|
|
|
env:
|
|
|
|
cache-name: cache-export-template
|
|
|
|
with:
|
|
|
|
path: misc/export_templates/godot/bin
|
|
|
|
key: godot-${{ env.GODOT_COMMIT_HASH }}-${{ matrix.target }}-v${{ env.EXPORT_TEMPLATE_CACHE_VERSION }}
|
|
|
|
- name: Build template in docker container
|
|
|
|
if: steps.cache-export-template.outputs.cache-hit != 'true'
|
|
|
|
run: cd misc/export_templates && ./build.sh -t ${{ matrix.target }}
|
|
|
|
- name: Upload export template
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: html5-gdnative-export-templates
|
|
|
|
path: misc/export_templates/godot/bin/webassembly_gdnative_${{matrix.target}}.zip
|
|
|
|
|
|
|
|
|
|
|
|
install_godot:
|
|
|
|
name: 'Install Godot'
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
platform: [ x11.64, linux_headless.64, osx.universal ] #, x11.32, win64.exe, win32.exe ]
|
2021-07-18 14:15:08 +02:00
|
|
|
include:
|
|
|
|
- platform: x11.64
|
|
|
|
os: ubuntu-latest
|
2021-07-20 02:27:07 +02:00
|
|
|
- platform: linux_headless.64
|
|
|
|
os: ubuntu-latest
|
|
|
|
- platform: osx.universal
|
|
|
|
os: macos-latest
|
2021-07-18 14:15:08 +02:00
|
|
|
# For Windows platform we need to install mesa-dist-win.
|
2021-07-20 02:27:07 +02:00
|
|
|
# 32 bit X11 also needs special attention.
|
|
|
|
# So disable both of them for now.
|
2021-07-18 14:15:08 +02:00
|
|
|
#- platform: x11.32
|
|
|
|
# os: ubuntu-latest
|
|
|
|
#- platform: win64.exe
|
|
|
|
# os: windows-latest
|
|
|
|
#- platform: win32.exe
|
|
|
|
# os: windows-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
submodules: recursive
|
2021-07-20 02:27:07 +02:00
|
|
|
- name: Cache Godot executable
|
2021-07-18 14:15:08 +02:00
|
|
|
uses: actions/cache@v2
|
|
|
|
id: cache-godot
|
|
|
|
env:
|
|
|
|
cache-name: cache-godot
|
|
|
|
with:
|
|
|
|
path: godot_executable/
|
2021-07-20 02:27:07 +02:00
|
|
|
key: godot-cache-${{ env.GODOT }}_${{ matrix.platform }}-v${{ env.GODOT_CACHE_VERSION }}
|
2021-07-18 14:15:08 +02:00
|
|
|
- name: Download Godot
|
|
|
|
uses: suisei-cn/actions-download-file@v1
|
|
|
|
if: steps.cache-godot.outputs.cache-hit != 'true'
|
|
|
|
with:
|
2021-07-20 02:27:07 +02:00
|
|
|
url: https://downloads.tuxfamily.org/godotengine/${{ env.GODOT_VERSION }}/${{ env.GODOT }}_${{ matrix.platform }}.zip
|
2021-07-18 14:15:08 +02:00
|
|
|
target: godot_executable/
|
|
|
|
- name: Extract Godot
|
|
|
|
shell: bash
|
|
|
|
if: steps.cache-godot.outputs.cache-hit != 'true'
|
|
|
|
run: |
|
|
|
|
cd godot_executable
|
2021-07-20 02:27:07 +02:00
|
|
|
unzip ${{ env.GODOT }}_${{ matrix.platform }}.zip
|
2021-07-18 14:15:08 +02:00
|
|
|
- name: Symlink Godot
|
2021-07-20 02:27:07 +02:00
|
|
|
if: steps.cache-godot.outputs.cache-hit != 'true' && matrix.platform == 'osx.universal'
|
|
|
|
run: ln -s Godot.app/Contents/MacOS/Godot godot_executable/${{ env.GODOT }}_${{ matrix.platform }}
|
2021-07-18 14:15:08 +02:00
|
|
|
|
2021-07-20 02:27:07 +02:00
|
|
|
|
|
|
|
test:
|
|
|
|
name: 'Test'
|
|
|
|
needs: [ install_godot, build, export_template ]
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
platform: [ x11.64, osx.universal ] #, x11.32, win64.exe, win32.exe ]
|
|
|
|
target: [ release, debug ]
|
|
|
|
include:
|
|
|
|
- platform: x11.64
|
|
|
|
os: ubuntu-latest
|
|
|
|
- platform: osx.universal
|
|
|
|
os: macos-latest
|
|
|
|
# For Windows platform we need to install mesa-dist-win.
|
|
|
|
# 32 bit X11 also needs special attention.
|
|
|
|
# So disable both of them for now.
|
|
|
|
#- platform: x11.32
|
|
|
|
# os: ubuntu-latest
|
|
|
|
#- platform: win64.exe
|
|
|
|
# os: windows-latest
|
|
|
|
#- platform: win32.exe
|
|
|
|
# os: windows-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
submodules: recursive
|
|
|
|
- name: Cache godot executable
|
|
|
|
uses: actions/cache@v2
|
|
|
|
id: cache-godot
|
|
|
|
env:
|
|
|
|
cache-name: cache-godot
|
|
|
|
with:
|
|
|
|
path: godot_executable/
|
|
|
|
key: godot-cache-${{ env.GODOT }}_${{ matrix.platform }}-v${{ env.GODOT_CACHE_VERSION }}
|
|
|
|
- name: Install Ubuntu dependencies
|
|
|
|
if: ${{ matrix.os == 'ubuntu-latest' }}
|
|
|
|
run: sudo apt-get install -y pulseaudio
|
2021-07-18 14:15:08 +02:00
|
|
|
- name: Install binary build artifacts
|
|
|
|
uses: actions/download-artifact@v2
|
|
|
|
with:
|
|
|
|
name: libgodot-xterm-${{ matrix.target }}
|
|
|
|
path: addons/godot_xterm/native/bin
|
|
|
|
- name: Install plugins
|
|
|
|
uses: GabrielBB/xvfb-action@v1
|
|
|
|
with:
|
2021-07-20 02:27:07 +02:00
|
|
|
run: godot_executable/${{ env.GODOT }}_${{ matrix.platform }} --no-window -s plug.gd install
|
2021-07-18 14:15:08 +02:00
|
|
|
|
2021-07-20 02:27:07 +02:00
|
|
|
# HACK: Use export to force re-import of files.
|
|
|
|
# See the proposal to support command line import https://github.com/godotengine/godot-proposals/issues/1362
|
|
|
|
- name: Install html5 export templates
|
|
|
|
uses: actions/download-artifact@v2
|
|
|
|
with:
|
|
|
|
name: html5-gdnative-export-templates
|
|
|
|
path: misc/export_templates/godot/bin
|
|
|
|
- name: Create export directory
|
|
|
|
run: mkdir -p docs/demo
|
2021-07-18 14:15:08 +02:00
|
|
|
- name: Import files
|
|
|
|
uses: GabrielBB/xvfb-action@v1
|
|
|
|
with:
|
2021-07-20 02:27:07 +02:00
|
|
|
run: ./godot_executable/${{ env.GODOT }}_${{ matrix.platform }} --export HTML5
|
2021-07-18 14:15:08 +02:00
|
|
|
|
|
|
|
- name: Run tests
|
|
|
|
uses: GabrielBB/xvfb-action@v1
|
|
|
|
with:
|
2021-07-20 02:27:07 +02:00
|
|
|
run: ./godot_executable/${{ env.GODOT }}_${{ matrix.platform }} --no-window -s addons/gut/gut_cmdln.gd -gconfig=test/.gutconfig.ci.json
|
2021-07-18 14:15:08 +02:00
|
|
|
- name: Run unix tests
|
|
|
|
if: ${{ matrix.platform != 'win64.exe' && matrix.platform != 'win32.exe' }}
|
|
|
|
uses: GabrielBB/xvfb-action@v1
|
|
|
|
with:
|
2021-07-20 02:27:07 +02:00
|
|
|
run: ./godot_executable/${{ env.GODOT }}_${{ matrix.platform }} --no-window -s addons/gut/gut_cmdln.gd -gconfig=test/.gutconfig.unix.json
|
|
|
|
|
|
|
|
|
|
|
|
html5_export:
|
|
|
|
name: 'HTML5 Export'
|
|
|
|
needs: [ install_godot, build, export_template ]
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
submodules: recursive
|
|
|
|
- name: Cache godot executable
|
|
|
|
uses: actions/cache@v2
|
|
|
|
id: cache-godot
|
|
|
|
env:
|
|
|
|
cache-name: cache-godot
|
|
|
|
with:
|
|
|
|
path: godot_executable/
|
|
|
|
key: godot-cache-${{ env.GODOT }}_linux_headless.64-v${{ env.GODOT_CACHE_VERSION }}
|
|
|
|
- name: Install binary build artifacts
|
|
|
|
uses: actions/download-artifact@v2
|
|
|
|
with:
|
|
|
|
name: libgodot-xterm-release
|
|
|
|
path: addons/godot_xterm/native/bin
|
|
|
|
- name: Install html5 export templates
|
|
|
|
uses: actions/download-artifact@v2
|
|
|
|
with:
|
|
|
|
name: html5-gdnative-export-templates
|
|
|
|
path: misc/export_templates/godot/bin
|
|
|
|
- name: Create export directory
|
|
|
|
run: mkdir -p docs/demo
|
|
|
|
- name: Export html5
|
|
|
|
run: ./godot_executable/${{ env.GODOT }}_linux_headless.64 --export HTML5
|
|
|
|
# FIXME: HTML5 Exports not properly exporting .cast files.
|
|
|
|
# So skip upload for now.
|
|
|
|
#- name: Upload export
|
|
|
|
# uses: actions/upload-artifact@v2
|
|
|
|
# with:
|
|
|
|
# name: html5-demo
|
|
|
|
# path: docs/demo
|
2021-07-18 14:15:08 +02:00
|
|
|
|
2021-07-18 19:27:25 +02:00
|
|
|
|
|
|
|
# Git archive should only include addons/godot_xterm directory.
|
|
|
|
check-archive:
|
|
|
|
name: 'Check Archive'
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
submodules: recursive
|
|
|
|
- name: Create git archive
|
|
|
|
run: git archive -o archive.zip HEAD
|
|
|
|
- name: Extract archive
|
|
|
|
run: mkdir -p /tmp/unzipped && unzip archive.zip -d /tmp/unzipped
|
|
|
|
- name: Check that archive only contains addons directory
|
|
|
|
run: |
|
|
|
|
shopt -s nullglob dotglob
|
|
|
|
ls -lR /tmp/unzipped
|
|
|
|
files=(/tmp/unzipped/*)
|
|
|
|
if [ ${#files[@]} -ne 1 ]; then
|
|
|
|
echo "Wrong number of files in archive (${#files[@]}) expected 1."
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
if [ ! -d "/tmp/unzipped/addons" ]; then
|
|
|
|
echo "Expected directory (addons) not found."
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
files=(/tmp/unzipped/addons)
|
|
|
|
if [ ${#files[@]} -ne 1 ]; then
|
|
|
|
echo "Wrong number of files in addons directory (${#files[@]}) expected 1."
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
if [ ! -d "/tmp/unzipped/addons/godot_xterm" ]; then
|
|
|
|
echo "Expected directory (addons/godot_xterm) not found."
|
|
|
|
exit 1
|
|
|
|
fi
|
2021-07-20 02:27:07 +02:00
|
|
|
|