2024-02-12 22:50:19 +01:00
|
|
|
name: "Build and Test"
|
2020-11-06 06:57:25 +01:00
|
|
|
|
2021-07-23 15:44:17 +02:00
|
|
|
on:
|
|
|
|
push:
|
2021-12-17 09:45:06 +01:00
|
|
|
schedule: # Build and test daily.
|
|
|
|
- cron: 0 11 * * *
|
2020-11-06 06:57:25 +01:00
|
|
|
|
|
|
|
jobs:
|
2024-02-13 09:23:22 +01:00
|
|
|
import-assets:
|
2024-02-12 22:50:19 +01:00
|
|
|
name: "Import Assets"
|
2023-01-25 19:39:06 +01:00
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2024-02-13 03:22:16 +01:00
|
|
|
platform: [linux, macos, windows]
|
|
|
|
include:
|
|
|
|
- platform: linux
|
|
|
|
os: ubuntu-22.04
|
|
|
|
- platform: macos
|
|
|
|
os: macos-12
|
|
|
|
- platform: windows
|
|
|
|
os: windows-2022
|
2023-01-25 19:39:06 +01:00
|
|
|
steps:
|
2024-02-12 23:02:24 +01:00
|
|
|
- uses: actions/checkout@v4
|
2023-01-25 19:39:06 +01:00
|
|
|
- name: Import assets
|
|
|
|
uses: ./.github/actions/import-assets
|
|
|
|
with:
|
2024-01-06 10:42:07 +01:00
|
|
|
godot-version: v4.2.1-stable
|
2023-01-25 19:39:06 +01:00
|
|
|
- name: Upload imports
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
with:
|
2024-02-13 09:23:22 +01:00
|
|
|
name: imports-${{ matrix.platform }}
|
2023-01-25 19:39:06 +01:00
|
|
|
path: .godot/
|
|
|
|
|
2024-02-13 09:23:22 +01:00
|
|
|
build-linux:
|
|
|
|
name: Build (linux, ${{ matrix.arch }}, ${{ matrix.target }})
|
2022-08-27 10:32:03 +02:00
|
|
|
runs-on: ubuntu-22.04
|
2022-06-01 05:26:03 +02:00
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2024-02-12 22:50:19 +01:00
|
|
|
arch: [x86_64, x86_32]
|
2024-02-13 11:09:04 +01:00
|
|
|
target: [release]
|
2022-06-01 05:26:03 +02:00
|
|
|
steps:
|
2024-02-12 23:14:52 +01:00
|
|
|
- uses: actions/checkout@v4
|
2022-06-01 05:26:03 +02:00
|
|
|
with:
|
|
|
|
submodules: recursive
|
|
|
|
- name: Cache submodules
|
|
|
|
uses: ./.github/actions/cache-submodules
|
|
|
|
id: cache-submodules
|
|
|
|
with:
|
|
|
|
platform: linux
|
2023-01-25 19:12:07 +01:00
|
|
|
arch: ${{ matrix.arch }}
|
2024-02-13 03:22:16 +01:00
|
|
|
target: ${{ matrix.target }}
|
2022-06-01 05:26:03 +02:00
|
|
|
- name: Pull docker images
|
|
|
|
run: docker-compose pull
|
|
|
|
working-directory: addons/godot_xterm/native
|
|
|
|
- name: Cache docker image layers
|
2023-01-25 19:12:07 +01:00
|
|
|
uses: jpribyl/action-docker-layer-caching@v0.1.1
|
2022-06-01 05:26:03 +02:00
|
|
|
continue-on-error: true
|
2023-01-25 19:12:07 +01:00
|
|
|
- name: Ensure scons cache exists
|
|
|
|
run: mkdir -p ${{github.workspace}}/.scons-cache
|
2022-06-01 05:26:03 +02:00
|
|
|
- name: Build libuv
|
|
|
|
if: steps.cache-submodules.outputs.cache-hit != 'true'
|
|
|
|
working-directory: addons/godot_xterm/native
|
2023-01-25 19:12:07 +01:00
|
|
|
run: UID_GID="$(id -u):$(id -g)" docker-compose run -e TARGET=${{ matrix.target }} -e ARCH=${{ matrix.arch }} -v ${{github.workspace}}/.scons-cache:/scons-cache libuv-linux
|
2022-06-01 05:26:03 +02:00
|
|
|
- name: Build libgodot-xterm
|
|
|
|
working-directory: addons/godot_xterm/native
|
2023-01-25 19:12:07 +01:00
|
|
|
run: UID_GID="$(id -u):$(id -g)" docker-compose run -e TARGET=${{ matrix.target }} -e ARCH=${{ matrix.arch }} -v ${{github.workspace}}/.scons-cache:/scons-cache libgodot-xterm-linux
|
2022-06-01 05:26:03 +02:00
|
|
|
- name: Upload binaries
|
2023-01-25 19:12:07 +01:00
|
|
|
uses: actions/upload-artifact@v3
|
2022-06-01 05:26:03 +02:00
|
|
|
with:
|
|
|
|
name: libgodot-xterm-${{ matrix.target }}
|
|
|
|
path: |
|
|
|
|
addons/godot_xterm/native/bin/*.so
|
|
|
|
|
2024-02-13 09:23:22 +01:00
|
|
|
build-other-platforms:
|
|
|
|
name: Build (${{ matrix.platform }}, ${{ matrix.arch }}, ${{ matrix.target}})
|
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:
|
2024-02-13 03:22:16 +01:00
|
|
|
platform: [web, macos, windows]
|
2024-02-13 11:09:04 +01:00
|
|
|
target: [release]
|
2024-02-12 22:50:19 +01:00
|
|
|
bits: [64, 32]
|
2024-02-13 03:22:16 +01:00
|
|
|
exclude:
|
|
|
|
- platform: web
|
|
|
|
bits: 64
|
|
|
|
- platform: macos
|
|
|
|
bits: 32
|
2020-11-20 15:34:49 +01:00
|
|
|
include:
|
2024-02-13 03:22:16 +01:00
|
|
|
- platform: web
|
2022-08-27 10:32:03 +02:00
|
|
|
os: ubuntu-22.04
|
2024-02-13 03:22:16 +01:00
|
|
|
- platform: macos
|
2022-08-27 10:32:03 +02:00
|
|
|
os: macos-12
|
2020-11-20 15:34:49 +01:00
|
|
|
- platform: windows
|
2022-08-27 10:32:03 +02:00
|
|
|
os: windows-2022
|
2024-02-13 03:22:16 +01:00
|
|
|
- platform: web
|
|
|
|
arch: wasm32
|
|
|
|
- platform: macos
|
|
|
|
arch: universal
|
|
|
|
- platform: windows
|
|
|
|
bits: 64
|
|
|
|
arch: x86_64
|
|
|
|
- platform: windows
|
|
|
|
bits: 32
|
|
|
|
arch: x86_32
|
2020-11-10 04:04:08 +01:00
|
|
|
steps:
|
2024-02-12 23:14:52 +01:00
|
|
|
- uses: actions/checkout@v4
|
2020-11-10 04:04:08 +01:00
|
|
|
with:
|
|
|
|
submodules: recursive
|
2022-06-01 04:54:06 +02:00
|
|
|
- name: Cache submodules
|
|
|
|
uses: ./.github/actions/cache-submodules
|
|
|
|
id: cache-submodules
|
2021-07-02 19:27:34 +02:00
|
|
|
with:
|
2022-06-01 04:54:06 +02:00
|
|
|
platform: ${{ matrix.platform }}
|
|
|
|
target: ${{ matrix.target }}
|
2024-02-13 03:22:16 +01:00
|
|
|
arch: ${{ matrix.arch }}
|
2021-06-07 08:53:43 +02:00
|
|
|
- name: Cache emscripten
|
2024-02-13 03:22:16 +01:00
|
|
|
if: ${{ matrix.platform == 'web' }}
|
2023-01-25 19:12:07 +01:00
|
|
|
uses: actions/cache@v3
|
2021-06-07 08:53:43 +02:00
|
|
|
env:
|
|
|
|
cache-name: cache-emscripten
|
|
|
|
with:
|
|
|
|
path: addons/godot_xterm/native/.emcache
|
2023-01-25 19:12:07 +01:00
|
|
|
key: emsdk-cache-${{ matrix.target }}-${{ hashFiles('**/*.c*', '**/*.h*') }}
|
|
|
|
restore-keys: |
|
|
|
|
emsdk-cache-${{ matrix.target }}-
|
2024-02-13 03:22:16 +01:00
|
|
|
- name: Install web build dependencies
|
|
|
|
if: ${{ matrix.platform == 'web' }}
|
2022-02-24 03:43:03 +01:00
|
|
|
uses: mymindstorm/setup-emsdk@v11
|
2021-06-07 08:53:43 +02:00
|
|
|
with:
|
2022-08-01 09:56:43 +02:00
|
|
|
version: 3.1.14
|
2021-06-07 08:53:43 +02:00
|
|
|
actions-cache-folder: emsdk-cache-${{ matrix.target }}
|
2024-02-13 03:22:16 +01:00
|
|
|
- name: Install additional web build dependencies
|
|
|
|
if: ${{ matrix.platform == 'web' }}
|
2022-06-01 05:26:03 +02:00
|
|
|
run: sudo apt-get update && sudo apt-get install -y scons gcc-multilib g++-multilib
|
2020-11-20 15:34:49 +01:00
|
|
|
- name: Install additional macos build dependencies
|
2022-08-27 10:32:03 +02:00
|
|
|
if: ${{ matrix.os == 'macos-12' }}
|
2020-11-20 03:00:03 +01:00
|
|
|
run: brew install scons
|
2020-11-20 15:34:49 +01:00
|
|
|
- name: Install additional windows build dependencies
|
2022-08-27 10:32:03 +02:00
|
|
|
if: ${{ matrix.os == 'windows-2022' }}
|
2020-11-22 16:45:02 +01:00
|
|
|
run: python -m pip install scons
|
2022-06-01 05:26:03 +02:00
|
|
|
- name: Setup MSVC command prompt
|
2022-08-27 10:46:41 +02:00
|
|
|
uses: ilammy/msvc-dev-cmd@v1
|
2022-08-27 10:32:03 +02:00
|
|
|
if: ${{ matrix.os == 'windows-2022' }}
|
2021-07-03 10:15:01 +02:00
|
|
|
with:
|
|
|
|
arch: win${{ matrix.bits }}
|
2021-07-16 09:31:13 +02:00
|
|
|
- name: Setup cmake
|
2022-06-01 04:54:06 +02:00
|
|
|
if: steps.cache-submodules.outputs.cache-hit != 'true'
|
2024-02-12 22:12:04 +01:00
|
|
|
uses: jwlawson/actions-setup-cmake@v2
|
2021-07-02 19:27:34 +02:00
|
|
|
with:
|
2024-02-12 22:50:19 +01:00
|
|
|
cmake-version: "3.23.2"
|
2022-08-27 10:32:03 +02:00
|
|
|
use-32bit: ${{ matrix.bits == 32 && matrix.os == 'windows-2022' }}
|
2021-07-16 09:31:13 +02:00
|
|
|
- name: Build libuv
|
2022-06-01 04:54:06 +02:00
|
|
|
if: steps.cache-submodules.outputs.cache-hit != 'true'
|
2021-07-16 09:31:13 +02:00
|
|
|
shell: bash
|
|
|
|
env:
|
|
|
|
TARGET: ${{ matrix.target }}
|
|
|
|
BITS: ${{ matrix.bits }}
|
|
|
|
OS: ${{ matrix.os }}
|
|
|
|
run: |
|
|
|
|
cd addons/godot_xterm/native/thirdparty/libuv
|
2022-05-31 15:14:41 +02:00
|
|
|
args="-DCMAKE_BUILD_TYPE=$TARGET -DBUILD_SHARED_LIBS=OFF -DCMAKE_POSITION_INDEPENDENT_CODE=TRUE \
|
|
|
|
-DCMAKE_OSX_ARCHITECTURES=x86_64;arm64"
|
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
|
2022-08-27 10:32:03 +02:00
|
|
|
if [ "$BITS" -eq 32 -a "$OS" == "windows-2022" ]; then
|
2022-06-01 04:41:59 +02:00
|
|
|
cmake -G "Visual Studio 17 2022" -A Win32 -S $(pwd) -B "build" $args
|
2021-07-16 09:31:13 +02:00
|
|
|
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
|
2024-02-13 03:22:16 +01:00
|
|
|
- name: Ensure scons cache exists
|
|
|
|
run: mkdir -p ${{github.workspace}}/.scons-cache
|
|
|
|
shell: bash
|
2020-11-20 15:34:49 +01:00
|
|
|
- name: Build libgodot-xterm
|
2024-02-13 03:22:16 +01:00
|
|
|
env:
|
|
|
|
SCONS_CACHE: ${{github.workspace}}/.scons-cache
|
2020-11-20 03:00:03 +01:00
|
|
|
run: |
|
|
|
|
cd addons/godot_xterm/native
|
2024-02-13 03:22:16 +01:00
|
|
|
scons platform=${{ matrix.platform }} target=template_${{ matrix.target }} arch=${{ matrix.arch }} -j2
|
2022-06-01 05:26:03 +02:00
|
|
|
- name: Upload binaries
|
2023-01-25 19:12:07 +01:00
|
|
|
uses: actions/upload-artifact@v3
|
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: |
|
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
|
|
|
|
|
2024-02-13 09:23:22 +01:00
|
|
|
html5-export:
|
2023-01-25 19:12:07 +01:00
|
|
|
if: false # Temporarily disabled.
|
2024-02-12 22:50:19 +01:00
|
|
|
name: "HTML5 Export"
|
2024-02-13 09:23:22 +01:00
|
|
|
needs: [build-linux]
|
2022-08-27 10:32:03 +02:00
|
|
|
runs-on: ubuntu-22.04
|
2021-07-24 06:40:29 +02:00
|
|
|
steps:
|
2024-02-12 23:14:52 +01:00
|
|
|
- uses: actions/checkout@v4
|
2024-02-12 22:50:19 +01:00
|
|
|
- name: Setup Godot
|
2024-02-12 23:14:52 +01:00
|
|
|
uses: lihop/setup-godot@v2
|
2024-02-12 22:50:19 +01:00
|
|
|
with:
|
|
|
|
export-templates: true
|
|
|
|
- name: Install binary build artifacts
|
|
|
|
uses: actions/download-artifact@v3
|
|
|
|
with:
|
|
|
|
name: libgodot-xterm-release
|
|
|
|
path: addons/godot_xterm/native/bin
|
|
|
|
- name: Import assets
|
|
|
|
uses: ./.github/actions/import-assets
|
|
|
|
- name: Export HTML5
|
2024-02-12 22:12:05 +01:00
|
|
|
uses: nick-fields/retry@v3
|
2024-02-12 22:50:19 +01:00
|
|
|
with:
|
|
|
|
command: godot --no-window --export HTML5
|
|
|
|
retry_on: error
|
|
|
|
timeout_minutes: 5
|
|
|
|
max_attempts: 6
|
|
|
|
- name: NPM cache
|
|
|
|
uses: c-hive/gha-npm-cache@v1
|
|
|
|
with:
|
|
|
|
directory: test/html5
|
|
|
|
- name: Smoke test HTML5 export
|
|
|
|
shell: bash
|
|
|
|
working-directory: test/html5
|
|
|
|
run: |
|
|
|
|
npm ci
|
|
|
|
npx serve ../../docs/demo -p 3000 &
|
|
|
|
npx cypress run
|
|
|
|
- name: Upload cypress artifacts (on failure)
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
if: ${{ failure() }}
|
|
|
|
with:
|
|
|
|
name: cypress-artifacts
|
|
|
|
path: |-
|
|
|
|
test/html5/cypress/screenshots
|
|
|
|
test/html5/cypress/videos
|
|
|
|
- name: Upload export
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
name: html5-demo
|
|
|
|
path: docs/demo
|
2021-07-20 02:27:07 +02:00
|
|
|
|
2021-07-24 06:40:29 +02:00
|
|
|
test:
|
2024-02-13 09:23:22 +01:00
|
|
|
name: Test (${{ matrix.platform }}, ${{ matrix.arch }}, release)
|
|
|
|
needs: [check-archive, check-pre-commit]
|
2021-07-23 15:44:17 +02:00
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2024-02-13 03:22:16 +01:00
|
|
|
platform: [linux, macos, windows]
|
2024-02-12 22:50:19 +01:00
|
|
|
bits: [64, 32]
|
2024-02-13 09:23:22 +01:00
|
|
|
exclude:
|
|
|
|
- platform: macos
|
|
|
|
bits: 32
|
2024-02-13 03:22:16 +01:00
|
|
|
include:
|
|
|
|
- platform: linux
|
|
|
|
os: ubuntu-22.04
|
|
|
|
- platform: macos
|
|
|
|
os: macos-12
|
|
|
|
- platform: windows
|
|
|
|
os: windows-2022
|
2024-02-13 09:23:22 +01:00
|
|
|
- platform: linux
|
|
|
|
bits: 64
|
|
|
|
arch: x86_64
|
|
|
|
- platform: linux
|
|
|
|
bits: 32
|
|
|
|
arch: x86_32
|
2024-02-13 03:22:16 +01:00
|
|
|
- platform: macos
|
2024-02-13 09:23:22 +01:00
|
|
|
arch: universal
|
|
|
|
- platform: windows
|
|
|
|
bits: 64
|
|
|
|
arch: x86_64
|
|
|
|
- platform: windows
|
2021-07-23 15:44:17 +02:00
|
|
|
bits: 32
|
2024-02-13 09:23:22 +01:00
|
|
|
arch: x86_32
|
2021-07-23 15:44:17 +02:00
|
|
|
steps:
|
2024-02-12 23:14:52 +01:00
|
|
|
- uses: actions/checkout@v4
|
2021-07-23 15:44:17 +02:00
|
|
|
- name: Setup Godot
|
2024-02-12 23:14:52 +01:00
|
|
|
uses: lihop/setup-godot@v2
|
2021-07-23 15:44:17 +02:00
|
|
|
with:
|
2024-02-13 09:23:22 +01:00
|
|
|
version: "4.2.1-stable"
|
2023-01-25 20:30:17 +01:00
|
|
|
- name: Wait for asset import
|
2023-01-25 20:01:02 +01:00
|
|
|
uses: fountainhead/action-wait-for-check@v1.1.0
|
2021-07-23 15:44:17 +02:00
|
|
|
with:
|
2023-01-25 20:01:02 +01:00
|
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
2024-02-13 03:22:16 +01:00
|
|
|
checkName: Import Assets (${{ matrix.platform }})
|
2023-01-25 20:01:02 +01:00
|
|
|
ref: ${{ github.event.pull_request.head.sha || github.sha }}
|
2023-01-25 20:30:17 +01:00
|
|
|
- name: Download imports
|
2023-01-25 19:12:07 +01:00
|
|
|
uses: actions/download-artifact@v3
|
2022-08-23 23:41:22 +02:00
|
|
|
with:
|
2024-02-13 09:23:22 +01:00
|
|
|
name: imports-${{ matrix.platform }}
|
2023-01-25 20:30:17 +01:00
|
|
|
path: .godot
|
|
|
|
- name: Wait for build
|
2023-01-25 20:01:02 +01:00
|
|
|
uses: fountainhead/action-wait-for-check@v1.1.0
|
|
|
|
with:
|
|
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
2024-02-13 09:23:22 +01:00
|
|
|
checkName: Build (${{ matrix.platform }}, ${{ matrix.arch }}, release)
|
2023-01-25 20:01:02 +01:00
|
|
|
ref: ${{ github.event.pull_request.head.sha || github.sha }}
|
2024-02-13 09:23:22 +01:00
|
|
|
- name: Install binary build artifacts
|
2023-01-25 19:39:06 +01:00
|
|
|
uses: actions/download-artifact@v3
|
|
|
|
with:
|
2024-02-13 09:23:22 +01:00
|
|
|
name: libgodot-xterm-release
|
2023-01-25 20:30:17 +01:00
|
|
|
path: addons/godot_xterm/native/bin
|
2021-07-23 15:44:17 +02:00
|
|
|
|
2024-02-13 09:23:22 +01:00
|
|
|
delete-asset-imports:
|
|
|
|
name: Delete Asset Imports
|
2023-01-25 19:39:06 +01:00
|
|
|
runs-on: ubuntu-22.04
|
2024-02-13 09:23:22 +01:00
|
|
|
needs: [import-assets, test]
|
2023-01-25 19:39:06 +01:00
|
|
|
steps:
|
|
|
|
- uses: geekyeggo/delete-artifact@v2
|
|
|
|
with:
|
2024-02-12 22:50:19 +01:00
|
|
|
name: imports-*
|
2021-07-23 15:44:17 +02:00
|
|
|
|
2021-07-18 19:27:25 +02:00
|
|
|
# Git archive should only include addons/godot_xterm directory.
|
|
|
|
check-archive:
|
2024-02-12 22:50:19 +01:00
|
|
|
name: "Check Archive"
|
2022-08-27 10:32:03 +02:00
|
|
|
runs-on: ubuntu-22.04
|
2021-07-18 19:27:25 +02:00
|
|
|
steps:
|
2024-02-12 23:14:52 +01:00
|
|
|
- uses: actions/checkout@v4
|
2024-02-12 22:50:19 +01:00
|
|
|
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/godot_xterm directory
|
|
|
|
run: |
|
|
|
|
shopt -s nullglob dotglob
|
2024-02-12 23:10:14 +01:00
|
|
|
ls -laR /tmp/unzipped
|
2024-02-12 22:50:19 +01:00
|
|
|
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
|
|
|
|
2024-02-12 23:27:07 +01:00
|
|
|
check-pre-commit:
|
|
|
|
name: "Check Pre-Commit"
|
2022-08-27 10:32:03 +02:00
|
|
|
runs-on: ubuntu-22.04
|
2022-04-23 10:49:39 +02:00
|
|
|
steps:
|
2024-02-12 23:14:52 +01:00
|
|
|
- uses: actions/checkout@v4
|
2024-02-12 23:27:07 +01:00
|
|
|
- uses: pre-commit/action@v3.0.1
|