Skip to content

Commit 60082c0

Browse files
committed
attempt to add nasm to path in CI
1 parent 047a3a5 commit 60082c0

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.github/workflows/release-packages.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,11 @@ jobs:
6262
6363
$newPath = "$($env:SystemDrive)\Program Files\NASM\"
6464
$currentPath = [Environment]::GetEnvironmentVariable("Path", "Machine")
65-
66-
# Add the new path to the existing PATH
67-
$newPath = "$newPath;$currentPath"
6865
69-
# Set the updated PATH environment variable
70-
[Environment]::SetEnvironmentVariable("Path", $newPath, "Machine")
66+
echo "$newPath;$currentPath" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
7167
72-
echo "PATH set to: $Env:PATH"
68+
echo "Set the PATH environment variable to:"
69+
echo "$newPath;$currentPath"
7370
7471
# From: https://docs.rs/system-deps/6.2.2/system_deps/index.html
7572
echo "SYSTEM_DEPS_BUILD_INTERNAL=always" >> $env:GITHUB_ENV
@@ -78,6 +75,7 @@ jobs:
7875
- name: Build executable
7976
run: |
8077
echo "SYSTEM_DEPS_LINK is: $Env:SYSTEM_DEPS_LINK"
78+
echo "PATH is: $Env:PATH"
8179
8280
cargo build --release --features=networking,avif
8381
echo "------- meson log ----------"

0 commit comments

Comments
 (0)