Skip to content

Commit 118a4b7

Browse files
committed
try build with zig
1 parent 85d6afe commit 118a4b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
sudo snap install zig --classic --beta
4848
mkdir -p build
4949
# 使用Zig作为工具链编译C++项目
50-
cmake -B build -G Ninja -DCMAKE_C_COMPILER=zig-cc -DCMAKE_CXX_COMPILER=zig-c++ -DCMAKE_BUILD_TYPE=Release -DEMMY_CORE_VERSION=${{env.TAG}}
50+
cmake -B build -G Ninja -DCMAKE_C_COMPILER=zig -DCMAKE_C_COMPILER_ARG1=cc -DCMAKE_CXX_COMPILER=zig -DCMAKE_CXX_COMPILER_ARG1=c++ -DCMAKE_BUILD_TYPE=Release -DEMMY_CORE_VERSION=${{env.TAG}}
5151
cmake --build build --config Release
5252
cmake --install build --config Release --prefix ${{ github.workspace }}/artifact/
5353
else

0 commit comments

Comments
 (0)