Skip to content

Commit

Permalink
Detect correct shell.
Browse files Browse the repository at this point in the history
  • Loading branch information
Paebbels committed Jan 16, 2025
1 parent e56e95c commit a70892f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/Pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ jobs:
- name: Verify on Linux or macOS
if: matrix.name == 'Ubuntu' || matrix.name == 'macOS'
run: |
printf "%s\n" "${PATH}"
which ghdl
ghdl --version
Expand Down
12 changes: 11 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,16 @@ inputs:
runs:
using: composite
steps:
- name: Detect correct shell
id: shell
shell: bash
run: |
if [[ "${{ runner.os }}" == "Windows" && "${{ inputs.runtime }}" != "" ]]; then
printf "shell=msys2 {0}" >> $GITHUB_OUTPUT
else
printf "shell=bash" >> $GITHUB_OUTPUT
fi
- name: Update Bash on macOS
if: runner.os == 'macOS'
shell: bash
Expand All @@ -65,7 +75,7 @@ runs:
- name: Download and install GHDL
id: generic
if: runner.os == 'Linux' || runner.os == 'macOS' || ( runner.os == 'Windows' && inputs.runtime != '' )
shell: bash
shell: ${{ steps.shell.outputs.shell }}
run: |
# Download and install GHDL
ANSI_LIGHT_RED=$'\x1b[91m'
Expand Down

0 comments on commit a70892f

Please sign in to comment.