Skip to content

Commit

Permalink
6
Browse files Browse the repository at this point in the history
  • Loading branch information
sonygod committed Oct 9, 2024
1 parent 1f1f203 commit f26ae93
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,7 @@ jobs:
run: |
Start-Process -FilePath "install/haxe-4.3.6-win64.exe" -ArgumentList "/S" -Wait # Silent install
- name: Add Haxe to PATH
shell: powershell
run: |
$haxePath = (Get-ChildItem -Path "C:\Program Files\Haxe*" -Directory).FullName
if ($haxePath) {
Write-Host "Adding Haxe to PATH: $haxePath"
[Environment]::SetEnvironmentVariable("PATH", "$haxePath;$env:PATH", "Machine") # Persist across sessions
} else {
Write-Host "Haxe installation directory not found!"
exit 1
}
# Refresh environment variables for the current session
refreshenv

- name: Run Haxe build
shell: powershell
Expand Down

0 comments on commit f26ae93

Please sign in to comment.