Verify on Windows #34
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Verification of setup-ghdl | |
on: | |
push: | |
workflow_dispatch: | |
jobs: | |
Setup-GHDL-Nightly: | |
name: ${{ matrix.os.icon }} Setup GHDL ${{ matrix.os.backend }} on ${{ matrix.os.name }} | |
runs-on: ${{ matrix.os.image }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- {'icon': 'π§', 'name': 'Ubuntu', 'image': 'ubuntu-24.04', 'runtime': '', 'backend': 'mcode'} | |
# - {'icon': 'π§', 'name': 'Ubuntu', 'image': 'ubuntu-24.04', 'runtime': '', 'backend': 'llvm'} | |
# - {'icon': 'π§', 'name': 'Ubuntu', 'image': 'ubuntu-24.04', 'runtime': '', 'backend': 'llvm-jit'} | |
# - {'icon': 'π§', 'name': 'Ubuntu', 'image': 'ubuntu-24.04', 'runtime': '', 'backend': 'gcc'} | |
# - {'icon': 'π', 'name': 'macOS', 'image': 'macos-13', 'runtime': '', 'backend': 'mcode'} | |
# - {'icon': 'π', 'name': 'macOS', 'image': 'macos-13', 'runtime': '', 'backend': 'llvm'} | |
# - {'icon': 'π', 'name': 'macOS', 'image': 'macos-14', 'runtime': '', 'backend': 'llvm'} | |
- {'icon': 'πͺ', 'name': 'Windows', 'image': 'windows-2022', 'runtime': '', 'backend': 'mcode'} | |
# - {'icon': 'πͺπ¦', 'name': 'Windows', 'image': 'windows-2022', 'runtime': 'mingw64', 'backend': 'mcode'} | |
# - {'icon': 'πͺπ¦', 'name': 'Windows', 'image': 'windows-2022', 'runtime': 'mingw64', 'backend': 'llvm'} | |
# - {'icon': 'πͺπ¦', 'name': 'Windows', 'image': 'windows-2022', 'runtime': 'mingw64', 'backend': 'llvm-jit'} | |
# - {'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'} | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- name: π¦ Setup MSYS2 for ${{ matrix.os.runtime }} | |
uses: msys2/setup-msys2@v2 | |
if: matrix.os.runtime != '' | |
with: | |
msystem: ${{ matrix.os.runtime }} | |
update: true | |
- name: Setup GHDL ${{ matrix.os.backend }} | |
uses: paebbels/setup-ghdl@dev | |
with: | |
version: nightly | |
backend: ${{ matrix.os.backend }} | |
runtime: ${{ matrix.os.runtime }} | |
investigate: true | |
- name: Verify on Linux, macOS or Windows (native) | |
if: matrix.os.name == 'Ubuntu' || matrix.os.name == 'macOS' || ( matrix.os.name == 'Windows' && matrix.os.runtime == '' ) | |
run: | | |
ghdl --version | |
- name: Verify on Windows + MSYS2 | |
if: matrix.os.name == 'Windows' && matrix.os.runtime != '' | |
shell: 'msys2 {0}' | |
run: | | |
ghdl --version |