mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-09 09:33:57 -07:00
parallelize
This commit is contained in:
parent
388a4e74ef
commit
08e4e7815a
1 changed files with 7 additions and 3 deletions
10
.github/workflows/desktop-build.yml
vendored
10
.github/workflows/desktop-build.yml
vendored
|
|
@ -313,10 +313,14 @@ jobs:
|
||||||
arch: ${{env.QT_ARCH}}
|
arch: ${{env.QT_ARCH}}
|
||||||
modules: ${{env.QT_MODULES}}
|
modules: ${{env.QT_MODULES}}
|
||||||
|
|
||||||
- name: Strip arch from Qt libraries
|
- name: Thin Qt libraries
|
||||||
run: |
|
run: |
|
||||||
echo "Stripping arch from Qt libraries"
|
export ARCH=$(uname -m)
|
||||||
find $RUNNER_WORKSPACE/Qt -type f -exec sh -c 'file -b --mime-type "$0" | grep -q "application/x-mach-binary"' {} \; -exec lipo {} -thin $(uname -m) -output {} \;
|
export NPROC=$(sysctl -n hw.ncpu)
|
||||||
|
echo "Thinning Qt libraries to $ARCH using $NPROC cores"
|
||||||
|
find $RUNNER_WORKSPACE/Qt -type f -print0 | \
|
||||||
|
xargs -0 -n1 -P "$NPROC" sh -c \
|
||||||
|
'file -b --mime-type "$0" | grep -q "application/x-mach-binary" && lipo "$0" -thin "$ARCH" -output "$0" || true'
|
||||||
|
|
||||||
- name: Setup vcpkg cache
|
- name: Setup vcpkg cache
|
||||||
id: vcpkg-cache
|
id: vcpkg-cache
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue