-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- elify is enabled by default - Fixed some API errors - Added meta docs generator for VS Code lua extension - Changed API: ver.compare_version -> ver.compare ver.parse_semver -> ver.parse
- Loading branch information
Showing
32 changed files
with
2,108 additions
and
836 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,5 @@ build | |
tools/luasrcdiet | ||
.CACHE | ||
lib/tests/tmp/* | ||
!lib/tests/tmp/.gitkeep | ||
!lib/tests/tmp/.gitkeep | ||
.meta |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,41 @@ | ||
podman run -v $(pwd):"/root/luabuild" -v "$(pwd)/opt_cross:/opt/cross" -e TOOLCHAINS='x86_64-linux-musl-cross' elibuild | ||
./run_tests.sh $(pwd)/build/eli proc.lua | ||
#!/bin/sh | ||
podman run -v "$(pwd):/root/luabuild" -v "$(pwd)/toolchains:/opt/cross" -e TOOLCHAINS='x86_64-linux-musl-cross;i686-linux-musl-cross;aarch64-linux-musl-cross' elibuild | ||
|
||
PLATFORM=$(uname -m) | ||
ROOT=$(pwd) | ||
rm -rf release | ||
rm -rf .meta | ||
mkdir release | ||
|
||
test_build() { | ||
cd lib/tests && \ | ||
"$ROOT/build/$1-linux-musl-cross/eli" all.lua && \ | ||
echo cp "$ROOT/build/$1-linux-musl-cross/eli" "release/eli-unix-$1" && \ | ||
cp "$ROOT/build/$1-linux-musl-cross/eli" "$ROOT/release/eli-unix-$1" | ||
if [ -f "$ROOT/release/eli-unix-$1" ]; then | ||
cd "$ROOT" && \ | ||
"$ROOT/release/eli-unix-$1" "$ROOT/tools/meta-generator.lua" | ||
cd "$ROOT/.meta" && \ | ||
zip "$ROOT/release/meta.zip" -r * | ||
fi | ||
cd "$ROOT" | ||
} | ||
|
||
test_qemu_build() { | ||
cd lib/tests && \ | ||
"$2" "$ROOT/build/$1-linux-musl-cross/eli" all.lua && \ | ||
cp "$ROOT/build/$1-linux-musl-cross/eli" "$ROOT/release/eli-unix-$1" | ||
cd "$ROOT" | ||
} | ||
|
||
test_platform() { | ||
if [ "$PLATFORM" = "$1" ]; then | ||
test_build "$1" | ||
elif which qemu-x86_64; then | ||
test_qemu_build "$1" "qemu-${2:-$1}" | ||
fi | ||
} | ||
|
||
test_platform "x86_64" | ||
test_platform "i686" "i386" | ||
test_platform "aarch64" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.