GHA: Fix strip failing in Linux ARM64 builds

This commit is contained in:
Serhii Snitsaruk 2024-07-30 16:19:02 +02:00
parent dad5082e7e
commit af27aca021
No known key found for this signature in database
GPG Key ID: A965EF8799FFEC2D
1 changed files with 5 additions and 1 deletions

View File

@ -231,7 +231,11 @@ jobs:
env: env:
OUTDIR: ${{ startsWith(matrix.opts.target, 'template') && 'out/templates' || 'out/' }} OUTDIR: ${{ startsWith(matrix.opts.target, 'template') && 'out/templates' || 'out/' }}
run: | run: |
if [ "${{matrix.opts.arch}}" == "arm64" ]; then
${GITHUB_WORKSPACE}/buildroot/bin/aarch64-godot-linux-gnu-strip ./bin/godot.*
else
strip ./bin/godot.* strip ./bin/godot.*
fi
chmod +x ./bin/godot.* chmod +x ./bin/godot.*
mkdir -p ${{env.OUTDIR}} mkdir -p ${{env.OUTDIR}}
mv bin/* ${{env.OUTDIR}} mv bin/* ${{env.OUTDIR}}