Skip to content

Commit

Permalink
Check root cause for #4
Browse files Browse the repository at this point in the history
Making sure the saving/restoring of the environment was actually an issue.

https://docs.github.com/en/actions/reference/workflow-commands-for-github-actions#adding-a-system-path
  • Loading branch information
jmcker committed Apr 20, 2021
1 parent 84201e1 commit 144f7c6
Showing 1 changed file with 7 additions and 17 deletions.
24 changes: 7 additions & 17 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,30 +12,20 @@ jobs:

steps:

# Install GStreamer
- name: Install GStreamer and save to PATH
shell: powershell
- name: Install GStreamer
run: |
choco install gstreamer;
# Setup and use the Chocolatey helpers
Import-Module "${ENV:ChocolateyInstall}\helpers\chocolateyProfile.psm1";
Update-SessionEnvironment;
- name: Check PATH
shell: powershell
run: |
Get-ChildItem env:;
${ENV:Path}.Split(';');
# Save PATH for future steps
Write-Output "${ENV:PATH}" | Out-File -FilePath "${ENV:GITHUB_PATH}" -Encoding utf8
# You can also do this manually, but risk that the environment variable name changes
# This has already changed once during the 1.18.0 release
# https://github.com/jmcker/ChocolateyPackages/commit/6dff4a1ae842fbbe43942865a2ad421b00b3abd4
# echo "${ENV:GSTREAMER_1_0_ROOT_MSVC_X86_64}\bin" | Out-File -FilePath "${ENV:GITHUB_PATH}" -Encoding utf8 -Append;
# Setup and use the Chocolatey helpers
Import-Module "${ENV:ChocolateyInstall}\helpers\chocolateyProfile.psm1";
Update-SessionEnvironment;
- name: Check PATH
shell: powershell
run: |
Get-ChildItem env:;
${ENV:Path}.Split(';');
Expand Down

0 comments on commit 144f7c6

Please sign in to comment.