.NET: target baseline CPU

This commit is contained in:
Frank Denis 2023-09-09 20:41:19 +02:00
parent bb607f453e
commit 0aef86d2d3

View File

@ -34,7 +34,7 @@ jobs:
- uses: actions/checkout@v3
- name: build
run: |
zig build -Doptimize=ReleaseFast -Dtarget=x86_64-linux-gnu.2.17
zig build -Doptimize=ReleaseFast -Dtarget=x86_64-linux-gnu.2.17 -Dcpu=baseline
- name: tests
run: cd zig-out/bin && ./run.sh
- uses: actions/upload-artifact@v3
@ -61,7 +61,7 @@ jobs:
- uses: actions/checkout@v3
- name: build
run: |
zig build -Doptimize=ReleaseFast -Dtarget=arm-linux-gnueabihf.2.23
zig build -Doptimize=ReleaseFast -Dtarget=arm-linux-gnueabihf.2.23 -Dcpu=baseline
- name: tests
run: |
cd zig-out/bin && env LD_LIBRARY_PATH=/usr/arm-linux-gnueabihf/lib ./run.sh
@ -89,7 +89,7 @@ jobs:
- uses: actions/checkout@v3
- name: build
run: |
zig build -Doptimize=ReleaseFast -Dtarget=aarch64-linux-gnu.2.23
zig build -Doptimize=ReleaseFast -Dtarget=aarch64-linux-gnu.2.23 -Dcpu=baseline
- name: tests
run: |
cd zig-out/bin && env LD_LIBRARY_PATH=/usr/aarch64-linux-gnu/lib ./run.sh
@ -114,7 +114,7 @@ jobs:
- uses: actions/checkout@v3
- name: build
run: |
zig build -Doptimize=ReleaseFast -Dtarget=x86_64-linux-musl
zig build -Doptimize=ReleaseFast -Dtarget=x86_64-linux-musl -Dcpu=baseline
- name: tests
run: |
cd zig-out/bin && ./run.sh
@ -133,7 +133,7 @@ jobs:
- uses: actions/checkout@v3
- name: build
run: |
zig build -Doptimize=ReleaseFast -Dtarget=arm-linux-musleabihf
zig build -Doptimize=ReleaseFast -Dtarget=arm-linux-musleabihf -Dcpu=baseline
- uses: actions/upload-artifact@v3
with:
name: build-linux-musl-arm
@ -149,7 +149,7 @@ jobs:
- uses: actions/checkout@v3
- name: build
run: |
zig build -Doptimize=ReleaseFast -Dtarget=aarch64-linux-musl
zig build -Doptimize=ReleaseFast -Dtarget=aarch64-linux-musl -Dcpu=baseline
- uses: actions/upload-artifact@v3
with:
name: build-linux-musl-arm64