File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }}
You can’t perform that action at this time.
0 commit comments