Skip to content

Commit

Permalink
[CI] Build Zig, 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 71c0997
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
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
13 changes: 11 additions & 2 deletions 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 @@ -153,7 +153,7 @@ test_perl() {
export NO_NETWORK_TESTING=1
./Configure -des -Dcc="$CC" -Accflags=-fPIC -Alibs="-lpthread -ldl -lm -lcrypt -lutil -lc" \
-Alibpth="/usr/local/lib /lib /usr/lib /lib64 /usr/lib64 /lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu"
make test -j4
make -j4 test_prep && HARNESS_OPTIONS=j4 make test_harness
}

test_php() {
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 71c0997

Please sign in to comment.