mirror of
https://github.com/google/cpu_features.git
synced 2025-10-19 08:10:51 +02:00

* 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>
22 lines
471 B
YAML
22 lines
471 B
YAML
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
|