Skip to content

Commit 2d6ac26

Browse files
committed
Windows でのパス変換を修正する
1 parent 91199cf commit 2d6ac26

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/actions/download-openh264/action.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,9 @@ runs:
161161
GH_TOKEN: ${{ github.token }}
162162
run: |
163163
$VERSION = "${{ inputs.openh264_version }}"
164-
$CACHE_DIR = "${{ steps.setup.outputs.cache_dir }}"
164+
# Unix スタイルのパスを Windows スタイルに変換
165+
$CACHE_DIR_UNIX = "${{ steps.setup.outputs.cache_dir }}"
166+
$CACHE_DIR = $CACHE_DIR_UNIX -replace '^/c/', 'C:\' -replace '/', '\'
165167
$LIB_NAME = "${{ steps.setup.outputs.lib_name }}"
166168
167169
# キャッシュディレクトリを作成
@@ -213,9 +215,11 @@ runs:
213215
}
214216
215217
# キャッシュディレクトリにコピー
216-
$destPath = "$CACHE_DIR/$LIB_NAME"
218+
$destPath = Join-Path $CACHE_DIR $LIB_NAME
217219
Copy-Item -Path $dllName -Destination $destPath -Force
218-
Write-Host "Library cached to: $destPath"
220+
# Unix スタイルのパスで表示
221+
$destPathUnix = "$CACHE_DIR_UNIX/$LIB_NAME"
222+
Write-Host "Library cached to: $destPathUnix"
219223
220224
- name: Copy from cache to working directory
221225
id: copy

0 commit comments

Comments
 (0)