Skip to content

Commit

Permalink
Move gettext installation to separate PS1 file
Browse files Browse the repository at this point in the history
The linter does not understand windows powershell syntax. So we move
it to the scripts folder.
  • Loading branch information
dangillet committed Feb 8, 2025
1 parent 1c015e8 commit 39a9308
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,7 @@ jobs:
- name: Install Windows dependencies
if: startsWith(matrix.os, 'windows')
run: |
nuget install Gettext.Tools -OutputDirectory c:\nuget;
$gettextPath = (Get-ChildItem -Path "C:\nuget" -Directory -Filter "Gettext.Tools.*" | Select-Object -First 1).FullName;
Add-Content $env:GITHUB_PATH "$gettextPath\tools\bin"
scripts/install-gettext-windows.ps1
- name: Install uv
uses: hynek/setup-cached-uv@v2
Expand Down
10 changes: 10 additions & 0 deletions scripts/insall-gettext-windows.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# This script is used by the Github Action to install gettext on the CI

nuget install Gettext.Tools -OutputDirectory c:\nuget

$gettextPath = (
Get-ChildItem -Path "C:\nuget" -Directory -Filter "Gettext.Tools.*" |
Select-Object -First 1
).FullName

Add-Content $env:GITHUB_PATH "$gettextPath\tools\bin"

0 comments on commit 39a9308

Please sign in to comment.