Skip to content

Commit

Permalink
Line endings
Browse files Browse the repository at this point in the history
  • Loading branch information
hansott committed Feb 3, 2025
1 parent d1c42f8 commit 7647ec5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ jobs:
Move-Item "zen_internals.dll" $FILE
New-Item -ItemType File -Path "$FILE.sha256sum" | Out-Null
Set-ItemProperty -Path "$FILE.sha256sum" -Name IsReadOnly -Value $false
# Generate SHA256 checksum and write it in lowercase
Get-FileHash -Algorithm SHA256 -Path $FILE | ForEach-Object { "$($_.Hash.ToLower()) $FILE" } > "$FILE.sha256sum"
# Fix line endings to ensure compatibility with Unix/macOS
(Get-Content "$FILE.sha256sum") -replace "`r`n", "`n" | Set-Content "$FILE.sha256sum" -NoNewline
- name: Store the .dll file and sha256sum file
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit 7647ec5

Please sign in to comment.