Skip to content

Commit

Permalink
Experimental utf8 support for Windows gitlab-ci scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
jonoomph committed Dec 1, 2022
1 parent cd5e291 commit eb7bb51
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitlab-ci.yml
Expand Up @@ -88,6 +88,7 @@ windows-builder-x64:
- build\install-x64\share\*.log
- build\build-server.log
script:
- $PSDefaultParameterValues['Out-File:Encoding'] = 'utf8'
- try { Invoke-WebRequest -Uri "http://gitlab.openshot.org/OpenShot/libopenshot/-/jobs/artifacts/$CI_COMMIT_REF_NAME/download?job=windows-builder-x64" -Headers @{"PRIVATE-TOKEN"="$ACCESS_TOKEN"} -OutFile "artifacts.zip" } catch { $_.Exception.Response.StatusCode.Value__ }
- if (-not (Test-Path "artifacts.zip")) { Invoke-WebRequest -Uri "http://gitlab.openshot.org/OpenShot/libopenshot/-/jobs/artifacts/develop/download?job=windows-builder-x64" -Headers @{"PRIVATE-TOKEN"="$ACCESS_TOKEN"} -OutFile "artifacts.zip" }
- Expand-Archive -Path artifacts.zip -DestinationPath .
Expand Down Expand Up @@ -123,6 +124,7 @@ windows-builder-x86:
- build\install-x86\share\*.log
- build\build-server.log
script:
- $PSDefaultParameterValues['Out-File:Encoding'] = 'utf8'
- try { Invoke-WebRequest -Uri "http://gitlab.openshot.org/OpenShot/libopenshot/-/jobs/artifacts/$CI_COMMIT_REF_NAME/download?job=windows-builder-x86" -Headers @{"PRIVATE-TOKEN"="$ACCESS_TOKEN"} -OutFile "artifacts.zip" } catch { $_.Exception.Response.StatusCode.Value__ }
- if (-not (Test-Path "artifacts.zip")) { Invoke-WebRequest -Uri "http://gitlab.openshot.org/OpenShot/libopenshot/-/jobs/artifacts/develop/download?job=windows-builder-x86" -Headers @{"PRIVATE-TOKEN"="$ACCESS_TOKEN"} -OutFile "artifacts.zip" }
- Expand-Archive -Path artifacts.zip -DestinationPath .
Expand Down

0 comments on commit eb7bb51

Please sign in to comment.