Skip to content

Commit

Permalink
Simplify testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
Paebbels committed Jan 16, 2025
1 parent 33cadaa commit ef3c6ba
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/Pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,17 @@ jobs:
shell: bash

steps:
- name: Detect correct shell
id: shell
shell: bash
run: |
# Detect correct shell
if [[ "${{ matrix.name }}" == "Windows" && "${{ matrix.runtime }}" != "" ]]; then
printf "shell=msys2 {0}" >> $GITHUB_OUTPUT
else
printf "shell=bash" >> $GITHUB_OUTPUT
fi
- name: 🟦 Setup MSYS2 for ${{ matrix.runtime }}
uses: msys2/setup-msys2@v2
if: matrix.runtime != ''
Expand All @@ -67,11 +78,9 @@ jobs:
investigate: true

- name: Verify on Linux or macOS
if: matrix.name == 'Ubuntu' || matrix.name == 'macOS'
run: |
printf "%s\n" "${PATH}"
printf "which ghdl: %s\n" "$(which ghdl)"
which ghdl
ghdl --version
- name: Verify on Windows (native)
Expand All @@ -80,10 +89,3 @@ jobs:
run: |
echo $(Get-Command ghdl).Source
ghdl --version
- name: Verify on Windows + MSYS2
if: matrix.name == 'Windows' && matrix.runtime != ''
shell: 'msys2 {0}'
run: |
which ghdl
ghdl --version

0 comments on commit ef3c6ba

Please sign in to comment.