Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify addition to path step #77

Merged
merged 1 commit into from
Aug 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 5 additions & 10 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,18 +131,13 @@ runs:
echo REMOVAL TARGET: $(which alr)
rm -f $(which alr)* && echo REMOVED stable alr used for toolchain install

- name: Install GNAT (III) - Add to path (Windows)
if: steps.need-GNAT.outputs.need == 'true' && runner.os == 'Windows'
shell: pwsh
run: |
$Target = Resolve-Path .\setup_alire_prefix\bin
Add-Content $env:GITHUB_PATH $Target

- name: Install GNAT (III) - Add to path (!Windows)
if: steps.need-GNAT.outputs.need == 'true' && runner.os != 'Windows'
- name: Install GNAT (III) - Add to path
if: steps.need-GNAT.outputs.need == 'true'
shell: bash
run: |
readlink -f "$PWD/setup_alire_prefix/bin" >> $GITHUB_PATH
path_to_add=$(pwd -W 2>/dev/null || pwd)/setup_alire_prefix/bin
echo Adding to PATH: $path_to_add
echo "$path_to_add" >> $GITHUB_PATH

# END TOOLCHAIN INSTALLATION

Expand Down
Loading