Skip to content

Commit 57f509b

Browse files
committed
try zig build
1 parent 2e2d5a1 commit 57f509b

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,8 @@ jobs:
4444
if: startsWith(matrix.os, 'ubuntu')
4545
run: |
4646
if [[ "${{ matrix.zig_build }}" == "true" ]]; then
47-
wget https://ziglang.org/builds/zig-linux-x86_64-0.11.0.tar.xz
48-
tar -xf zig-linux-x86_64-0.11.0.tar.xz
49-
export PATH=$PWD/zig-linux-x86_64-0.11.0:$PATH
50-
mkdir build
51-
cd build
52-
CC="zig cc -target x86_64-linux-gnu.2.17" cmake .. -DCMAKE_BUILD_TYPE=Release -DEMMY_CORE_VERSION=${{env.TAG}}
47+
snap install zig --classic --beta
48+
cmake -B build -G Ninja --toolchain aarch64-linux-gnu.cmake -DCMAKE_BUILD_TYPE=Release -DEMMY_CORE_VERSION=${{env.TAG}}
5349
cmake --build . --config Release
5450
cmake --install . --config Release --prefix ${{ github.workspace }}/artifact/
5551
else

0 commit comments

Comments
 (0)