mirror of
https://github.com/CPunch/Laika.git
synced 2025-07-16 22:40:07 +00:00
Compare commits
No commits in common. "83c79ca662e62f9587324ec2b251783938842863" and "5aecc1b63fd2dffd2734d537b7cd78fe837d5d13" have entirely different histories.
83c79ca662
...
5aecc1b63f
47
.github/workflows/check-build.yaml
vendored
47
.github/workflows/check-build.yaml
vendored
@ -14,49 +14,22 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
ubuntu-build:
|
ubuntu-build:
|
||||||
name: ${{ matrix.name }}
|
runs-on: ubuntu-latest
|
||||||
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"
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
- uses: actions/setup-python@v2
|
- name: Install dependencies
|
||||||
with:
|
run: sudo apt install clang cmake -y
|
||||||
python-version: "3.10"
|
- name: Create CMake build files
|
||||||
- name: Install
|
run: cmake -B build
|
||||||
run: pip install cmake==3.21.4 --upgrade
|
- name: Check compilation
|
||||||
- name: CMake
|
|
||||||
run: cmake -S . -B build ${{ matrix.cmake-args }}
|
|
||||||
- name: Build
|
|
||||||
run: cmake --build build
|
run: cmake --build build
|
||||||
- name: Upload build artifact
|
- name: Upload build artifact
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: Laika-Ubuntu-${{ matrix.name }}
|
name: laika-demo-binaries-ubuntu
|
||||||
path: bin
|
path: bin
|
||||||
- name: Cleanup
|
|
||||||
run: rm -rf bin build
|
|
||||||
|
|
||||||
|
|
||||||
windows-build:
|
windows-build:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
@ -65,11 +38,11 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
- name: Create CMake build files
|
- 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
|
- name: Check compilation
|
||||||
run: cmake --build build --config MinSizeRel
|
run: cmake --build build
|
||||||
- name: Upload build artifact
|
- name: Upload build artifact
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: Laika-Windows-Release-Persistence-Obfuscate
|
name: laika-demo-binaries-windows
|
||||||
path: winbin
|
path: winbin
|
@ -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
|
- Change `lib/lin/linshell.c` to use openpty() instead of forkpty() for BSD support
|
||||||
- Fix address sanitizer for CMake DEBUG builds
|
- 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`
|
- 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
|
## 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.
|
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
3
USAGE.md
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
# Laika Build Process
|
||||||
|
|
||||||
|
Laika has a specific setup process that need some explanation. Before
|
@ -13,9 +13,6 @@ file(GLOB_RECURSE LIBHEADERS ${CMAKE_CURRENT_SOURCE_DIR}/include/**.h)
|
|||||||
add_library(LaikaLib STATIC ${LIBSOURCE} ${LIBHEADERS})
|
add_library(LaikaLib STATIC ${LIBSOURCE} ${LIBHEADERS})
|
||||||
target_link_libraries(LaikaLib PUBLIC sodium)
|
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
|
# add the version definitions and the 'DEBUG' preprocessor definition if we're compiling as Debug
|
||||||
target_compile_definitions(LaikaLib PUBLIC "$<$<CONFIG:Debug>:DEBUG>")
|
target_compile_definitions(LaikaLib PUBLIC "$<$<CONFIG:Debug>:DEBUG>")
|
||||||
|
|
||||||
|
@ -1 +0,0 @@
|
|||||||
../../../lib/include/lconfig.h
|
|
Loading…
x
Reference in New Issue
Block a user