Skip to content

Commit

Permalink
Speed up copying DLLs (#297)
Browse files Browse the repository at this point in the history
  • Loading branch information
Akuli authored Mar 4, 2023
1 parent c4569c2 commit bb95815
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,14 @@ jobs:
shell: bash
run: |
for bindir in jou jou/mingw64/bin; do
ready=no
while [ $ready == no ]; do
ready=yes
for file in $(mingw64/bin/objdump -p $bindir/*.exe $bindir/*.dll | grep 'DLL Name:' | cut -d: -f2 | sort -u); do
if [ -f mingw64/bin/$file ] && ! [ -f $bindir/$file ]; then
cp -v mingw64/bin/$file $bindir/
ready=no
queue=($bindir/*.exe)
while [ ${#queue[@]} != 0 ]; do
args=(${queue[@]})
queue=()
for dll in $(mingw64/bin/objdump -p ${args[@]} | grep 'DLL Name:' | cut -d: -f2 | sort -u); do
if [ -f mingw64/bin/$dll ] && ! [ -f $bindir/$dll ]; then
cp -v mingw64/bin/$dll $bindir/
queue+=($bindir/$dll)
fi
done
done
Expand Down

0 comments on commit bb95815

Please sign in to comment.