Skip to content

Commit

Permalink
[CI] Build Zig, enable full Metalang99 test
Browse files Browse the repository at this point in the history
  • Loading branch information
fuhsnn committed Dec 22, 2024
1 parent d7ee8e1 commit ff3d11b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/linux_thirdparty.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ jobs:
- thirdparty: build_musl
- thirdparty: build_nano
- thirdparty: build_sdl
- thirdparty: build_zig
steps:
- name: Download artifact
uses: actions/download-artifact@v4
Expand Down
11 changes: 10 additions & 1 deletion scripts/linux_thirdparty.bash
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ test_metalang99() {
github_tar hirrolot interface99 v1.0.1
sh scripts/test-all.sh
github_tar hirrolot metalang99 v1.13.3
sh scripts/test.sh
sh scripts/test-all.sh
}

test_oniguruma_jq() {
Expand Down Expand Up @@ -278,6 +278,15 @@ build_sdl() {
make
}

build_zig() {
github_clone fuhsnn zig wasm2c-stack
sed -i 's/stack-size=0x1000000/stack-size=0x4000000/g' bootstrap.c
cp lib/zig.h stage1/
"$CC" bootstrap.c -o _bootstrap
./_bootstrap
./zig2 test --show-builtin
}

# run a test

if [[ $(type -t "$1") != function ]]; then
Expand Down

0 comments on commit ff3d11b

Please sign in to comment.