Skip to content

Commit d76b4c8

Browse files
committed
CI(win): match platform dirs by -name, not -path
The -path '*/lib/{linux,darwin,mac}' glob silently matched nothing on Windows runners despite the dirs existing (Git Bash find vs deeply nested node_modules paths). Switch to -name matching by directory name — what the prebuilds cleanup above already does successfully.
1 parent 2b3ef19 commit d76b4c8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/build-windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ jobs:
133133
esac
134134
done
135135
' sh {} \;
136-
find node_modules -type d \( -path '*/lib/linux' -o -path '*/lib/darwin' -o -path '*/lib/mac' \) -prune -exec rm -rf {} +
136+
find node_modules -type d \( -name linux -o -name darwin -o -name mac \) -exec rm -rf {} +
137137
138138
- name: Build Windows application
139139
env:

0 commit comments

Comments
 (0)