aboutsummaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorumarcor <unai.martinezcorral@ehu.eus>2021-06-26 15:06:04 +0200
committerumarcor <unai.martinezcorral@ehu.eus>2021-07-18 23:53:08 +0200
commit6f84bada86b549350963d32e399892509da989e9 (patch)
tree5eb48b7789b2a7d7dda6a7865af90b56714c5db9 /.github
parent914a44d996f6d8cf4b8db400391f39a99a14e8cd (diff)
downloadghdl-6f84bada86b549350963d32e399892509da989e9.tar.gz
ghdl-6f84bada86b549350963d32e399892509da989e9.tar.bz2
ghdl-6f84bada86b549350963d32e399892509da989e9.zip
ci: add Windows CPython jobs
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/Test.yml64
1 files changed, 63 insertions, 1 deletions
diff --git a/.github/workflows/Test.yml b/.github/workflows/Test.yml
index 83bafbb07..b5adfc3dc 100644
--- a/.github/workflows/Test.yml
+++ b/.github/workflows/Test.yml
@@ -314,7 +314,7 @@ jobs:
run: GHDL=ghdl ./testsuite/testsuite.sh ${{ matrix.suite }}
#
-# Windows pyGHDL pip installation
+# Windows MSYS2 pyGHDL pip installation
#
win-pip:
@@ -428,6 +428,68 @@ jobs:
path: ${{ matrix.installs }}-mcode-standalone.zip
#
+# Windows CPython pyGHDL Test with MSYS2 installation
+#
+
+ win-cpython-msys2:
+ needs: win-build
+ runs-on: windows-latest
+ strategy:
+ fail-fast: false
+ max-parallel: 2
+ matrix:
+ include: [
+ {icon: '๐ŸŸช', installs: 'MINGW32', arch: i686, pkg: 'mcode', pyarch: x86 },
+ #{icon: '๐ŸŸช', installs: "MINGW32", arch: i686, pkg: "llvm", pyarch: x86 }, ! Not yet functional
+ {icon: '๐ŸŸฆ', installs: "MINGW64", arch: x86_64, pkg: "mcode", pyarch: x64 }, #! simulation with mcode is not yet supported on win64
+ {icon: '๐ŸŸฆ', installs: 'MINGW64', arch: x86_64, pkg: 'llvm', pyarch: x64 },
+ ]
+ name: '${{ matrix.icon }} CPython ยท ${{ matrix.installs }} ยท ${{ matrix.pkg }}'
+ defaults:
+ run:
+ shell: pwsh
+ steps:
+
+ - name: '${{ matrix.icon }} Setup MSYS2'
+ uses: msys2/setup-msys2@v2
+ with:
+ msystem: ${{ matrix.installs }}
+ update: true
+
+ - name: 'โš™๏ธ git config'
+ run: git config --global core.autocrlf input
+
+ - name: '๐Ÿงฐ Checkout'
+ uses: actions/checkout@v2
+
+ - name: '๐Ÿ“ฅ Download artifact: package'
+ uses: actions/download-artifact@v2
+ with:
+ name: ${{ matrix.installs }}-${{ matrix.pkg }}
+
+ - name: 'โš™๏ธ Install package'
+ shell: msys2 {0}
+ run: |
+ pacman --noconfirm -U artifact/mingw-w64-${{ matrix.arch }}-ghdl-${{ matrix.pkg }}-*.zst
+
+ - name: '๐Ÿ Setup Python'
+ uses: actions/setup-python@v2
+ with:
+ python-version: 3.8
+ architecture: ${{ matrix.pyarch }}
+
+ - name: '๐Ÿ Install Python dependencies'
+ run: |
+ pip3 install -r testsuite/requirements.txt
+
+ - name: '๐Ÿšง Test package'
+ run: |
+ $env:GHDL_PREFIX = (& msys2 -c 'cygpath -w /') + '${{ matrix.installs }}\lib\ghdl\'
+ $env:PYTHONPATH = (pwd).Path
+ cd testsuite
+ python3 -m pytest -vsrA pyunit
+
+#
# Release
#