aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
authorumarcor <unai.martinezcorral@ehu.eus>2021-07-03 09:50:38 +0200
committerumarcor <unai.martinezcorral@ehu.eus>2021-07-03 11:19:29 +0200
commit3c1783c39ac11e5c1a936e34981e85c7887cdb90 (patch)
treee6c68351294dc9bcdf8ae311ef4057061ce1d789 /.github/workflows
parent606a24c2448a02818a1be42fd00d808db20986e7 (diff)
downloadghdl-3c1783c39ac11e5c1a936e34981e85c7887cdb90.tar.gz
ghdl-3c1783c39ac11e5c1a936e34981e85c7887cdb90.tar.bz2
ghdl-3c1783c39ac11e5c1a936e34981e85c7887cdb90.zip
ci: test the installation of pyGHDL through pip
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/Test.yml54
1 files changed, 53 insertions, 1 deletions
diff --git a/.github/workflows/Test.yml b/.github/workflows/Test.yml
index d36abf28b..160d4048a 100644
--- a/.github/workflows/Test.yml
+++ b/.github/workflows/Test.yml
@@ -314,12 +314,64 @@ jobs:
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: