Skip to content

Commit

Permalink
ci: test the installation of pyGHDL through pip
Browse files Browse the repository at this point in the history
  • Loading branch information
umarcor committed Jul 3, 2021
1 parent 606a24c commit 3c1783c
Showing 1 changed file with 53 additions and 1 deletion.
54 changes: 53 additions & 1 deletion .github/workflows/Test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -313,13 +313,65 @@ jobs:
- name: '馃毀 Test package'
run: GHDL=ghdl ./testsuite/testsuite.sh ${{ matrix.suite }}

#
# Windows pyGHDL
#

win-pyGHDL:
needs: win-build
runs-on: windows-latest
strategy:
fail-fast: false
max-parallel: 2
matrix:
sys: [
{icon: '馃煢', installs: 'MINGW32', arch: i686, pkg: 'mcode' },
#{icon: '馃煢', installs: "MINGW32", arch: i686, pkg: "llvm" }, ! Not yet functional
#{icon: '馃煪', installs: "MINGW64", arch: x86_64, pkg: "mcode" }, ! mcode is not yet supported on win64
{icon: '馃煪', installs: 'MINGW64', arch: x86_64, pkg: 'llvm' },
]
name: '${{ matrix.sys.icon }} pyGHDL 路 ${{ matrix.sys.installs }} 路 ${{ matrix.sys.pkg }}'
defaults:
run:
shell: msys2 {0}
steps:

- name: '${{ matrix.sys.icon }} Setup MSYS2'
uses: msys2/setup-msys2@v2
with:
msystem: ${{ matrix.sys.installs }}
update: true
install: >
git
mingw-w64-${{ matrix.sys.arch }}-gcc
mingw-w64-${{ matrix.sys.arch }}-python-pip
mingw-w64-${{ matrix.sys.arch }}-python-setuptools
- name: '鈿欙笍 git config'
run: git config --global core.autocrlf input
shell: bash

- name: '馃摜 Download artifact: package'
uses: actions/download-artifact@v2

- name: '馃毀 Install package'
run: pacman --noconfirm -U artifact/mingw-w64-${{ matrix.sys.arch }}-ghdl-${{ matrix.sys.pkg }}-*.zst

- name: '馃毀 Test installation of pyGHDL through pip'
run: pip install git+https://github.com/ghdl/ghdl.git@$(ghdl version hash)

- name: '馃毀 Test pyGHDL entrypoints'
run: |
ghdl-dom help
ghdl-ls --help
#
# Release
#

Release:
if: github.event_name != 'pull_request' && (github.ref == 'refs/heads/master' || contains(github.ref, 'refs/tags/'))
needs: [ doc, lin, osx, win-test ]
needs: [ doc, lin, osx, win-test, win-pyGHDL ]
runs-on: ubuntu-latest
name: '馃摝 Release'
steps:
Expand Down

0 comments on commit 3c1783c

Please sign in to comment.