Skip to content

Commit e862bd5

Browse files
committed
fix: VS Code workflow binary path issues
- Remove ./ prefix from artifact download paths (working-directory affects this) - Add ls command to debug what's in the directory - Use $(pwd) instead of $PWD for consistency
1 parent edf69e5 commit e862bd5

2 files changed

Lines changed: 8 additions & 10 deletions

File tree

.github/workflows/ci.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,6 @@ jobs:
4444
if: runner.os != 'Windows'
4545
run: cargo clippy --all-targets --all-features
4646

47-
- name: Build
48-
run: cargo build --verbose
49-
5047
- name: Run tests
5148
run: cargo test --verbose
5249

.github/workflows/vscode.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
workflow: ci.yml
5050
workflow_conclusion: success
5151
name: renamify-linux-x64
52-
path: ./renamify-bin
52+
path: renamify-bin
5353

5454
- name: Download renamify binary (macOS)
5555
if: runner.os == 'macOS'
@@ -58,7 +58,7 @@ jobs:
5858
workflow: ci.yml
5959
workflow_conclusion: success
6060
name: renamify-macos-x64
61-
path: ./renamify-bin
61+
path: renamify-bin
6262

6363
- name: Download renamify binary (Windows)
6464
if: runner.os == 'Windows'
@@ -67,17 +67,18 @@ jobs:
6767
workflow: ci.yml
6868
workflow_conclusion: success
6969
name: renamify-windows-x64
70-
path: ./renamify-bin
70+
path: renamify-bin
7171

7272
- name: Make binary executable and add to PATH
7373
shell: bash
7474
run: |
75+
ls -la renamify-bin/
7576
if [[ "$RUNNER_OS" == "Windows" ]]; then
76-
chmod +x ./renamify-bin/renamify.exe
77-
echo "$PWD/renamify-bin" >> $GITHUB_PATH
77+
chmod +x renamify-bin/renamify.exe
78+
echo "$(pwd)/renamify-bin" >> $GITHUB_PATH
7879
else
79-
chmod +x ./renamify-bin/renamify
80-
echo "$PWD/renamify-bin" >> $GITHUB_PATH
80+
chmod +x renamify-bin/renamify
81+
echo "$(pwd)/renamify-bin" >> $GITHUB_PATH
8182
fi
8283
8384
- name: Verify renamify is available

0 commit comments

Comments
 (0)