Skip to content

Commit

Permalink
Use zig cc for CI
Browse files Browse the repository at this point in the history
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
  • Loading branch information
angt committed Jan 16, 2025
1 parent 93c9924 commit 1568229
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,16 @@ jobs:
- name: Update submodules
run: git submodule update --init --recursive

- name: Install zig
run: sudo snap install zig --classic --beta

- name: Build
run: make
run: |
for target in \
aarch64-linux-musl \
aarch64-macos-none \
x86_64-linux-musl \
x86_64-macos-none
do
zig cc -target "$arget" -s -o secret-$target.bin secret.c
done

0 comments on commit 1568229

Please sign in to comment.