Skip to content

Commit 1bf6742

Browse files
committed
chore(ci): use baseline as target cpu to allow the executable to run on any system.
Signed-off-by: Federico Di Pierro <[email protected]>
1 parent 3da1ffc commit 1bf6742

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/reusable_build_packages.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,13 @@ jobs:
6767
6868
cat > zig-linux-${{ inputs.arch }}-${ZIG_VERSION}/zig-cc <<EOF
6969
#!/bin/bash
70-
exec zig cc -target ${{ inputs.arch }}-linux-gnu.2.17 "\$@"
70+
exec zig cc -target ${{ inputs.arch }}-linux-gnu.2.17 -mcpu=baseline "\$@"
7171
EOF
7272
chmod +x zig-linux-${{ inputs.arch }}-${ZIG_VERSION}/zig-cc
7373
7474
cat > zig-linux-${{ inputs.arch }}-${ZIG_VERSION}/zig-c++ <<EOF
7575
#!/bin/bash
76-
exec zig c++ -target ${{ inputs.arch }}-linux-gnu.2.17 "\$@"
76+
exec zig c++ -target ${{ inputs.arch }}-linux-gnu.2.17 -mcpu=baseline "\$@"
7777
EOF
7878
chmod +x zig-linux-${{ inputs.arch }}-${ZIG_VERSION}/zig-c++
7979

0 commit comments

Comments
 (0)