Skip to content

Commit fa17fa3

Browse files
committed
CI: test building from source without LLVM
1 parent ab91c4a commit fa17fa3

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

ci/x86_64-linux-debug.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,14 @@ git config core.abbrev 9
2020
git fetch --unshallow || true
2121
git fetch --tags
2222

23+
# Test building from source without LLVM.
24+
git clean -fd
25+
rm -rf zig-out
26+
cc -o bootstrap bootstrap.c
27+
./bootstrap build -Dno-lib
28+
# In order to run these behavior tests we need to move the `@cImport` ones to somewhere else.
29+
# ./zig-out/bin/zig test test/behavior.zig
30+
2331
export CC="$ZIG cc -target $TARGET -mcpu=$MCPU"
2432
export CXX="$ZIG c++ -target $TARGET -mcpu=$MCPU"
2533

ci/x86_64-linux-release.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,14 @@ git config core.abbrev 9
2020
git fetch --unshallow || true
2121
git fetch --tags
2222

23+
# Test building from source without LLVM.
24+
git clean -fd
25+
rm -rf zig-out
26+
cc -o bootstrap bootstrap.c
27+
./bootstrap build -Dno-lib
28+
# In order to run these behavior tests we need to move the `@cImport` ones to somewhere else.
29+
# ./zig-out/bin/zig test test/behavior.zig
30+
2331
export CC="$ZIG cc -target $TARGET -mcpu=$MCPU"
2432
export CXX="$ZIG c++ -target $TARGET -mcpu=$MCPU"
2533

0 commit comments

Comments
 (0)