mirror of
https://github.com/google/cpu_features.git
synced 2025-10-19 16:20:50 +02:00
Build with zig (#431)
* build with Zig Add the necessary files to build a static library with Zig. The build also includes producing execuable that can be cross-compiled Signed-off-by: inge4pres <fgualazzi@gmail.com> * ci: add zig build workflow Signed-off-by: inge4pres <fgualazzi@gmail.com> * build(zig): aarch64 macros on Linux * CI: split zig build by platform Signed-off-by: inge4pres <fgualazzi@gmail.com> * CI: release script updates version in build.zig.zon Signed-off-by: inge4pres <fgualazzi@gmail.com> --------- Signed-off-by: inge4pres <fgualazzi@gmail.com>
This commit is contained in:

committed by
GitHub

parent
d8680367ef
commit
2182eb53ec
21
.github/workflows/amd64_linux_zig.yml
vendored
Normal file
21
.github/workflows/amd64_linux_zig.yml
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
name: amd64 Linux Zig
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
run:
|
||||
strategy:
|
||||
matrix:
|
||||
target:
|
||||
- x86_64-linux-musl
|
||||
- x86_64-linux-gnu
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
- uses: mlugg/setup-zig@v2
|
||||
with:
|
||||
version: latest
|
||||
- name: Build
|
||||
run: zig build -Dtarget=${{ matrix.target }}
|
||||
- name: Run list_cpu_features
|
||||
run: ./zig-out/bin/list_cpu_features --json
|
Reference in New Issue
Block a user