Skip to content

Commit

Permalink
fix: use zig cc in release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
twoeths committed Jan 23, 2025
1 parent 7987ddc commit 7bc3cf0
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,22 @@ jobs:
git submodule update --init --recursive
ls -la blst
- name: Install Zig
uses: mlugg/setup-zig@v1
with:
version: "0.13.0" # Set the required Zig version

- name: Run blst/build.sh
run: |
cd blst
./build.sh CROSS_COMPILE=${{ matrix.platform }}
zig cc -target ${{ matrix.platform }} -c src/server.c -o server.o
zig cc -target ${{ matrix.platform }} -c build/assembly.S -o assembly.o
zig ar rcs libblst.a server.o assembly.o
- name: Verify built blst
run: |
ls -la blst/libblst.a
- name: Install Zig
uses: mlugg/setup-zig@v1
with:
version: "0.13.0" # Set the required Zig version

- name: Build binary
run: |
zig build -Dtarget=${{ matrix.platform }} test
Expand Down

0 comments on commit 7bc3cf0

Please sign in to comment.