Skip to content

Commit a72bc55

Browse files
author
Daniel Gillet
committed
Move gettext installation to separate PS1 file
The linter does not understand windows powershell syntax. So we move it to the scripts folder.
1 parent 443b382 commit a72bc55

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,7 @@ jobs:
4545
- name: Install Windows dependencies
4646
if: startsWith(matrix.os, 'windows')
4747
run: |
48-
nuget install Gettext.Tools -OutputDirectory c:\nuget;
49-
$gettextPath = (Get-ChildItem -Path "C:\nuget" -Directory -Filter "Gettext.Tools.*" | Select-Object -First 1).FullName;
50-
Add-Content $env:GITHUB_PATH "$gettextPath\tools\bin"
48+
scripts/install-gettext-windows.ps1
5149
5250
- name: Install uv
5351
uses: hynek/setup-cached-uv@v2
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# This script is used by the Github Action to install gettext on the CI
2+
3+
nuget install Gettext.Tools -OutputDirectory c:\nuget
4+
5+
$gettextPath = (
6+
Get-ChildItem -Path "C:\nuget" -Directory -Filter "Gettext.Tools.*" |
7+
Select-Object -First 1
8+
).FullName
9+
10+
Add-Content $env:GITHUB_PATH "$gettextPath\tools\bin"

0 commit comments

Comments
 (0)