Skip to content

tools: level_editor: disallow adding to sets #4020

tools: level_editor: disallow adding to sets

tools: level_editor: disallow adding to sets #4020

Workflow file for this run

name: build_and_test
on: [push, pull_request]
jobs:
docs:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v6
- name: prepare
run: |
sudo apt-get update
sudo apt-get install codespell
sudo apt-get install python3-sphinx
- name: spellcheck
run: |
make codespell
- name: docs
run: |
make docs
android-arm:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v6
- name: prepare
run: |
sudo apt-get update
sudo apt-get install libc6-dev-i386
ANDROID_SDK_ROOT=/usr/local/lib/android/sdk
SDKMANAGER=${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager
echo "y" | $SDKMANAGER "ndk;23.2.8568313"
- name: android-arm-make-debug
run: |
export ANDROID_NDK_ROOT=$ANDROID_HOME/ndk/23.2.8568313
export ANDROID_NDK_ABI=23
make MAKE_JOBS=4 android-arm-debug
- name: android-arm-make-development
run: |
export ANDROID_NDK_ROOT=$ANDROID_HOME/ndk/23.2.8568313
export ANDROID_NDK_ABI=23
make MAKE_JOBS=4 android-arm-development
- name: android-arm-make-release
run: |
export ANDROID_NDK_ROOT=$ANDROID_HOME/ndk/23.2.8568313
export ANDROID_NDK_ABI=23
make MAKE_JOBS=4 android-arm-release
- name: android-arm64-make-debug
run: |
export ANDROID_NDK_ROOT=$ANDROID_HOME/ndk/23.2.8568313
export ANDROID_NDK_ABI=23
make MAKE_JOBS=4 android-arm64-debug
- name: android-arm64-make-development
run: |
export ANDROID_NDK_ROOT=$ANDROID_HOME/ndk/23.2.8568313
export ANDROID_NDK_ABI=23
make MAKE_JOBS=4 android-arm64-development
- name: android-arm64-make-release
run: |
export ANDROID_NDK_ROOT=$ANDROID_HOME/ndk/23.2.8568313
export ANDROID_NDK_ABI=23
make MAKE_JOBS=4 android-arm64-release
html5:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v6
- name: prepare
run: |
git clone https://github.com/emscripten-core/emsdk.git
cd emsdk
./emsdk install latest
./emsdk activate latest
- name: wasm-make-debug
run: |
export EMSCRIPTEN=$GITHUB_WORKSPACE/emsdk/upstream/emscripten
make MAKE_JOBS=4 wasm-debug
- name: wasm-test-debug
run: |
cd ./build/wasm/bin && node crown-debug --run-unit-tests
- name: wasm-make-development
run: |
export EMSCRIPTEN=$GITHUB_WORKSPACE/emsdk/upstream/emscripten
make MAKE_JOBS=4 wasm-development
- name: wasm-test-development
run: |
cd ./build/wasm/bin && node crown-development --run-unit-tests
- name: wasm-make-release
run: |
export EMSCRIPTEN=$GITHUB_WORKSPACE/emsdk/upstream/emscripten
make MAKE_JOBS=4 wasm-release
- name: wasm-test-release
run: |
cd ./build/wasm/bin && node crown-release --run-unit-tests
linux:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v6
- name: prepare
run: |
sudo apt-get update
sudo apt-get install mesa-common-dev libgl1-mesa-dev libpulse-dev libxkbcommon-dev libxrandr-dev libdecor-0-dev
sudo apt-get install gcc-multilib g++-multilib libc6-dev-i386
- name: linux-make-debug64
run: |
make MAKE_JOBS=4 linux-debug64
- name: linux-test-debug64
run: |
cd ./build/linux64/bin && ./crown-debug --run-unit-tests
- name: linux-make-development64
run: |
make MAKE_JOBS=4 linux-development64
- name: linux-test-development64
run: |
cd ./build/linux64/bin && ./crown-development --run-unit-tests
- name: linux-make-release64
run: |
make MAKE_JOBS=4 linux-release64
- name: linux-test-release64
run: |
cd ./build/linux64/bin && ./crown-release --run-unit-tests
- name: linux-make-debug32
run: |
make MAKE_JOBS=4 linux-debug32
- name: linux-make-development32
run: |
make MAKE_JOBS=4 linux-development32
- name: linux-compile-samples-android
run: |
make MAKE_JOBS=4 samples SAMPLES_PLATFORM=android
- name: linux-compile-samples-html5
run: |
make MAKE_JOBS=4 samples SAMPLES_PLATFORM=html5
- name: linux-compile-samples-linux
run: |
make MAKE_JOBS=4 samples SAMPLES_PLATFORM=linux
- name: linux-make-crown-launcher-debug64
run: |
make MAKE_JOBS=4 crown-launcher-linux-debug64
- name: linux-make-crown-launcher-release64
run: |
make MAKE_JOBS=4 crown-launcher-linux-release64
windows:
runs-on: windows-2022
steps:
- uses: actions/checkout@v6
- uses: msys2/setup-msys2@v2
- name: mingw-prepare
shell: msys2 {0}
run: |
pacman --noconfirm -S make mingw-w64-x86_64-gcc mingw-w64-x86_64-pkgconf mingw-w64-x86_64-gtk3 mingw-w64-x86_64-vala gettext
- name: mingw-make-debug64
shell: msys2 {0}
run: |
export MINGW=/mingw64
make MAKE_JOBS=4 mingw-debug64
- name: mingw-test-debug64
shell: msys2 {0}
run: |
build/mingw64/bin/crown-debug.exe --run-unit-tests
- name: mingw-make-development64
shell: msys2 {0}
run: |
export MINGW=/mingw64
make MAKE_JOBS=4 mingw-development64
- name: mingw-test-development64
shell: msys2 {0}
run: |
build/mingw64/bin/crown-development.exe --run-unit-tests
- name: mingw-make-release64
shell: msys2 {0}
run: |
export MINGW=/mingw64
make MAKE_JOBS=4 mingw-release64
- name: mingw-test-release64
shell: msys2 {0}
run: |
build/mingw64/bin/crown-release.exe --run-unit-tests
- name: mingw-compile-samples-windows
shell: msys2 {0}
run: |
export MINGW=/mingw64
make MAKE_JOBS=4 samples SAMPLES_PLATFORM=windows
- name: mingw-make-crown-launcher-debug64
shell: msys2 {0}
run: |
export MINGW=/mingw64
make MAKE_JOBS=4 crown-launcher-mingw-debug64
- name: mingw-make-crown-launcher-release64
shell: msys2 {0}
run: |
export MINGW=/mingw64
make MAKE_JOBS=4 crown-launcher-mingw-release64
linux-tools:
name: linux-tools-${{ matrix.toolkit }}
runs-on: ubuntu-22.04
strategy:
matrix:
include:
- toolkit: gtk3
package: libgtk-3-dev
target_suffix: ""
- toolkit: gtk4
package: libgtk-4-dev
target_suffix: -gtk4
steps:
- uses: actions/checkout@v6
- name: prepare
run: |
sudo apt-get update
sudo apt-get install ${{ matrix.package }}
sudo add-apt-repository ppa:vala-team
sudo apt-get install valac sassc libxml2-utils gettext
- name: linux-make-crown-editor-debug64
run: |
make MAKE_JOBS=4 crown-editor-theme${{ matrix.target_suffix }}
make MAKE_JOBS=4 crown-editor-linux-debug64${{ matrix.target_suffix }}
- name: linux-test-crown-editor-debug64
run: |
cd ./build/linux64/bin && ./crown-editor-debug --run-unit-tests
- name: linux-make-crown-editor-release64
run: |
make MAKE_JOBS=4 crown-editor-theme${{ matrix.target_suffix }}
make MAKE_JOBS=4 crown-editor-linux-release64${{ matrix.target_suffix }}
- name: linux-test-crown-editor-release64
run: |
cd ./build/linux64/bin && ./crown-editor-release --run-unit-tests
mingw-tools:
name: mingw-tools-${{ matrix.toolkit }}
runs-on: windows-2022
strategy:
matrix:
include:
- toolkit: gtk3
package: mingw-w64-x86_64-gtk3
target_suffix: ""
- toolkit: gtk4
package: mingw-w64-x86_64-gtk4
target_suffix: -gtk4
steps:
- uses: actions/checkout@v6
- uses: msys2/setup-msys2@v2
- name: prepare
shell: msys2 {0}
run: |
pacman --noconfirm -S make mingw-w64-x86_64-gcc mingw-w64-x86_64-pkgconf ${{ matrix.package }} mingw-w64-x86_64-vala mingw-w64-x86_64-sassc gettext
- name: mingw-make-crown-editor-debug64
shell: msys2 {0}
run: |
export MINGW=/mingw64
make MAKE_JOBS=4 crown-editor-theme${{ matrix.target_suffix }}
make MAKE_JOBS=4 crown-editor-mingw-debug64${{ matrix.target_suffix }}
- name: mingw-test-crown-editor-debug64
shell: msys2 {0}
run: |
build/mingw64/bin/crown-editor-debug.exe --run-unit-tests
- name: mingw-make-crown-editor-release64
shell: msys2 {0}
run: |
export MINGW=/mingw64
make MAKE_JOBS=4 crown-editor-theme${{ matrix.target_suffix }}
make MAKE_JOBS=4 crown-editor-mingw-release64${{ matrix.target_suffix }}
- name: mingw-test-crown-editor-release64
shell: msys2 {0}
run: |
build/mingw64/bin/crown-editor-release.exe --run-unit-tests
code-style:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v6
- name: format
run: |
make MAKE_JOBS=4 format-sources
- name: check-diff
run: |
exit `git diff --shortstat | wc -l`