Skip to content

Commit

Permalink
chore(ci): use baseline as target cpu to allow the executable to run …
Browse files Browse the repository at this point in the history
…on any system.

Signed-off-by: Federico Di Pierro <[email protected]>
  • Loading branch information
FedeDP committed Aug 30, 2024
1 parent 0bb6f49 commit 903ec35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/reusable_build_packages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,13 @@ jobs:
cat > zig-linux-${{ inputs.arch }}-${ZIG_VERSION}/zig-cc <<EOF
#!/bin/bash
exec zig cc -target ${{ inputs.arch }}-linux-gnu.2.17 "\$@"
exec zig cc -target ${{ inputs.arch }}-linux-gnu.2.17 -mcpu=baseline "\$@"
EOF
chmod +x zig-linux-${{ inputs.arch }}-${ZIG_VERSION}/zig-cc
cat > zig-linux-${{ inputs.arch }}-${ZIG_VERSION}/zig-c++ <<EOF
#!/bin/bash
exec zig c++ -target ${{ inputs.arch }}-linux-gnu.2.17 "\$@"
exec zig c++ -target ${{ inputs.arch }}-linux-gnu.2.17 -mcpu=baseline "\$@"
EOF
chmod +x zig-linux-${{ inputs.arch }}-${ZIG_VERSION}/zig-c++
Expand Down

0 comments on commit 903ec35

Please sign in to comment.