Skip to content

Commit 78fd66a

Browse files
committed
how about now?
1 parent 145586a commit 78fd66a

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

.github/workflows/run-zwave-wsl.yml.disabled renamed to .github/workflows/run-zwave-wsl.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,31 @@ jobs:
4545
shell: wsl-bash {0}
4646
run: chmod +x zwave_stack/bin/*.elf
4747

48+
- name: Copy Z-Wave storage to WSL native filesystem
49+
shell: wsl-bash {0}
50+
run: |
51+
# Create storage in WSL native filesystem
52+
rm -rf ~/zwave_storage
53+
mkdir -p ~/zwave_storage
54+
55+
# Copy extracted storage files to WSL native filesystem
56+
if [ -d "./zwave_stack/storage" ]; then
57+
cp -r ./zwave_stack/storage/* ~/zwave_storage/ 2>/dev/null || true
58+
fi
59+
60+
# Get list of storage subdirectories, then replace with symlinks
61+
if [ -d "./zwave_stack/storage" ]; then
62+
STORAGE_DIRS=$(find ./zwave_stack/storage -mindepth 1 -maxdepth 1 -type d -exec basename {} \;)
63+
rm -rf ./zwave_stack/storage
64+
mkdir -p ./zwave_stack/storage
65+
for dir in $STORAGE_DIRS; do
66+
ln -sf ~/zwave_storage/$dir ./zwave_stack/storage/$dir
67+
done
68+
fi
69+
70+
echo "Storage symlinks created:"
71+
ls -la ./zwave_stack/storage/
72+
4873
- name: Run CTT tests
4974
run: npm start
5075
env:

0 commit comments

Comments
 (0)