Skip to content

Commit

Permalink
Added 4.1.0 to the tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Paebbels committed Jan 17, 2025
1 parent 1334469 commit 534ff3b
Showing 1 changed file with 48 additions and 16 deletions.
64 changes: 48 additions & 16 deletions .github/workflows/Pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ on:

jobs:
Setup-GHDL-Nightly:
name: ${{ matrix.icon }} Setup GHDL ${{ matrix.backend }} on ${{ matrix.name }}
runs-on: ${{ matrix.image }}
name: ${{ matrix.os.icon }} Setup GHDL ${{ matrix.os.backend }} on ${{ matrix.os.name }}
runs-on: ${{ matrix.os.image }}
strategy:
fail-fast: false
matrix:
include:
os:
- {'icon': '🐧', 'name': 'Ubuntu', 'image': 'ubuntu-20.04', 'runtime': '', 'backend': 'mcode'}
- {'icon': '🐧', 'name': 'Ubuntu', 'image': 'ubuntu-24.04', 'runtime': '', 'backend': 'xcode'}
- {'icon': '🐧', 'name': 'Ubuntu', 'image': 'ubuntu-24.04', 'runtime': '', 'backend': 'mcode'}
Expand All @@ -46,6 +46,11 @@ jobs:
- {'icon': '🪟🟨', 'name': 'Windows', 'image': 'windows-2022', 'runtime': 'ucrt64', 'backend': 'mcode'}
- {'icon': '🪟🟨', 'name': 'Windows', 'image': 'windows-2022', 'runtime': 'ucrt64', 'backend': 'llvm'}
- {'icon': '🪟🟨', 'name': 'Windows', 'image': 'windows-2022', 'runtime': 'ucrt64', 'backend': 'llvm-jit'}
version:
- {'install': '4.1.0', 'expected': '4.1.0'}
# - {'install': 'latest', 'expected': '4.1.0'}
- {'install': 'nightly', 'expected': '5.0.0-dev'}

defaults:
run:
shell: bash
Expand All @@ -55,44 +60,71 @@ jobs:
id: detect
run: |
# Detect correct shell
if [[ "${{ matrix.name }}" == "Windows" && "${{ matrix.runtime }}" != "" ]]; then
if [[ "${{ matrix.os.name }}" == "Windows" && "${{ matrix.os.runtime }}" != "" ]]; then
printf "shell=msys2 {0}" >> $GITHUB_OUTPUT
else
printf "shell=bash" >> $GITHUB_OUTPUT
fi
- name: 🟦 Setup MSYS2 for ${{ matrix.runtime }}
- name: 🟦 Setup MSYS2 for ${{ matrix.os.runtime }}
uses: msys2/setup-msys2@v2
if: matrix.runtime != ''
if: matrix.os.runtime != ''
with:
msystem: ${{ matrix.runtime }}
msystem: ${{ matrix.os.runtime }}
update: true

- name: Setup GHDL ${{ matrix.backend }}
- name: Setup GHDL ${{ matrix.os.backend }}
uses: ghdl/setup-ghdl@dev
with:
version: nightly
backend: ${{ matrix.backend }}
runtime: ${{ matrix.runtime }}
version: ${{ matrix.version.install }}
backend: ${{ matrix.os.backend }}
runtime: ${{ matrix.os.runtime }}
investigate: true

- name: Verify on Linux, macOS and Windows (native)
if: matrix.name == 'Linux' || matrix.name == 'macOS' || ( matrix.name == 'Windows' && matrix.runtime == '' )
if: matrix.os.name == 'Linux' || matrix.os.name == 'macOS' || ( matrix.os.name == 'Windows' && matrix.os.runtime == '' )
run: |
ANSI_LIGHT_RED=$'\x1b[91m'
ANSI_LIGHT_GREEN=$'\x1b[92m'
ANSI_NOCOLOR=$'\x1b[0m'
printf "which ghdl: %s\n" "$(which ghdl)"
ghdl --version
expected="${{ matrix.version.expected }}"
printf "%s" "Verify GHDL version '${expected}' ... "
if [[ "$(ghdl --version | head -n 1)" =~ ${expected//./\\.} ]]; then
printf "${ANSI_LIGHT_GREEN}%s${ANSI_NOCOLOR}\n" "[OK]"
else
printf "${ANSI_LIGHT_RED}%s\${ANSI_NOCOLOR}n" "[FAILED]"
printf "::warning title=%s::%s\n" "Test-SetupGHDL" "GHDL version doesn't match."
ghdl --version
fi
- name: Verify on Windows + MSYS2
if: matrix.name == 'Windows' && matrix.runtime != ''
if: matrix.os.name == 'Windows' && matrix.os.runtime != ''
shell: "msys2 {0}"
run: |
ANSI_LIGHT_RED=$'\x1b[91m'
ANSI_LIGHT_GREEN=$'\x1b[92m'
ANSI_NOCOLOR=$'\x1b[0m'
printf "which ghdl: %s\n" "$(which ghdl)"
ghdl --version
expected="${{ matrix.version.expected }}"
printf "%s" "Verify GHDL version '${expected}' ... "
if [[ "$(ghdl --version | head -n 1)" =~ ${expected//./\\.} ]]; then
printf "${ANSI_LIGHT_GREEN}%s${ANSI_NOCOLOR}\n" "[OK]"
else
printf "${ANSI_LIGHT_RED}%s${ANSI_NOCOLOR}\n" "[FAILED]"
printf "::warning title=%s::%s\n" "Test-SetupGHDL" "GHDL version doesn't match."
ghdl --version
fi
- name: Verify on Windows (native) with Powershell
if: matrix.name == 'Windows' && matrix.runtime == ''
if: matrix.os.name == 'Windows' && matrix.os.runtime == ''
shell: powershell
run: |
echo $(Get-Command ghdl).Source
Expand Down

0 comments on commit 534ff3b

Please sign in to comment.