1
0
mirror of https://github.com/CPunch/Laika.git synced 2025-07-16 14:30:07 +00:00

Compare commits

..

No commits in common. "83c79ca662e62f9587324ec2b251783938842863" and "5aecc1b63fd2dffd2734d537b7cd78fe837d5d13" have entirely different histories.

5 changed files with 14 additions and 43 deletions

View File

@ -14,49 +14,22 @@ on:
jobs:
ubuntu-build:
name: ${{ matrix.name }}
runs-on: ubuntu-20.04
env:
CTEST_OUTPUT_ON_FAILURE: ON
CTEST_PARALLEL_LEVEL: 2
strategy:
fail-fast: false
matrix:
include:
- name: Default
cmake-args: ""
- name: Debug
cmake-args: "-DCMAKE_BUILD_TYPE=Debug"
- name: Debug-Persistence-Obfuscate
cmake-args: "-DCMAKE_BUILD_TYPE=Debug -DLAIKA_PERSISTENCE=On -DLAIKA_OBFUSCATE=On"
- name: Release
cmake-args: "-DCMAKE_BUILD_TYPE=MinSizeRel"
- name: Release-Persistence-Obfuscate
cmake-args: "-DCMAKE_BUILD_TYPE=MinSizeRel -DLAIKA_PERSISTENCE=On -DLAIKA_OBFUSCATE=On"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: actions/setup-python@v2
with:
python-version: "3.10"
- name: Install
run: pip install cmake==3.21.4 --upgrade
- name: CMake
run: cmake -S . -B build ${{ matrix.cmake-args }}
- name: Build
- name: Install dependencies
run: sudo apt install clang cmake -y
- name: Create CMake build files
run: cmake -B build
- name: Check compilation
run: cmake --build build
- name: Upload build artifact
uses: actions/upload-artifact@v2
with:
name: Laika-Ubuntu-${{ matrix.name }}
name: laika-demo-binaries-ubuntu
path: bin
- name: Cleanup
run: rm -rf bin build
windows-build:
runs-on: windows-latest
@ -65,11 +38,11 @@ jobs:
with:
submodules: recursive
- name: Create CMake build files
run: cmake -B build -DCMAKE_BUILD_TYPE=MinSizeRel -DLAIKA_PERSISTENCE=On -DLAIKA_OBFUSCATE=On
run: cmake -B build
- name: Check compilation
run: cmake --build build --config MinSizeRel
run: cmake --build build
- name: Upload build artifact
uses: actions/upload-artifact@v2
with:
name: Laika-Windows-Release-Persistence-Obfuscate
name: laika-demo-binaries-windows
path: winbin

View File

@ -14,9 +14,8 @@ Looking for some simple tasks that need to get done for that sweet 'contributor'
- Change `lib/lin/linshell.c` to use openpty() instead of forkpty() for BSD support
- Fix address sanitizer for CMake DEBUG builds
- Change laikaT_getTime in `lib/src/ltask.c` to not use C11 features
- Change laikaT_getTime in `lib/src/ltask.c` to not use C11 features.
- Implement more LAIKA_BOX_* VMs in `lib/include/lbox.h`
- Follow GNU GPL license guidelines (read 'How to Apply These Terms to Your New Programs')
## Lib: Error Handling
Error handling in Laika is done via the 'lerror.h' header library. It's a small and simple error handling solution written for laika, however can be stripped and used as a simple error handling library. Error handling in Laika is used similarly to other languages, implementing a try & catch block and is achieved using setjmp(). The LAIKA_ERROR(...) is used to throw errors.

3
USAGE.md Normal file
View File

@ -0,0 +1,3 @@
# Laika Build Process
Laika has a specific setup process that need some explanation. Before

View File

@ -13,9 +13,6 @@ file(GLOB_RECURSE LIBHEADERS ${CMAKE_CURRENT_SOURCE_DIR}/include/**.h)
add_library(LaikaLib STATIC ${LIBSOURCE} ${LIBHEADERS})
target_link_libraries(LaikaLib PUBLIC sodium)
# make sure we're compiled *AFTER* lboxconfig.h has been generated
add_dependencies(LaikaLib VMBoxGen)
# add the version definitions and the 'DEBUG' preprocessor definition if we're compiling as Debug
target_compile_definitions(LaikaLib PUBLIC "$<$<CONFIG:Debug>:DEBUG>")

View File

@ -1 +0,0 @@
../../../lib/include/lconfig.h