Skip to content

Commit 3b9ff40

Browse files
committed
fix: Dirs
1 parent d641cff commit 3b9ff40

1 file changed

Lines changed: 13 additions & 7 deletions

File tree

.github/workflows/build-wheel.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,22 @@ jobs:
3737
cache: "pip"
3838
- name: Install dependencies
3939
run: pip install -r requirements.txt
40-
- name: Prepare build directories
40+
- name: Prepare build directories (Unix)
41+
shell: bash
42+
if: runner.os != 'Windows'
4143
run: |
4244
mkdir -p artifacts
4345
mkdir -p src/c2pa/libs
44-
if [ "$RUNNER_OS" = "Windows" ]; then
45-
if (Test-Path dist) { Remove-Item -Recurse -Force dist }
46-
if (Test-Path build) { Remove-Item -Recurse -Force build }
47-
else
48-
rm -rf dist/* build/*
49-
fi
46+
rm -rf dist build
47+
48+
- name: Prepare build directories (Windows)
49+
shell: pwsh
50+
if: runner.os == 'Windows'
51+
run: |
52+
New-Item -ItemType Directory -Force -Path artifacts
53+
New-Item -ItemType Directory -Force -Path src/c2pa/libs
54+
if (Test-Path dist) { Remove-Item -Recurse -Force dist }
55+
if (Test-Path build) { Remove-Item -Recurse -Force build }
5056
- name: Download native artifacts (from tag c2pa-v0.55.0)
5157
env:
5258
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)