From 6f84bada86b549350963d32e399892509da989e9 Mon Sep 17 00:00:00 2001 From: umarcor Date: Sat, 26 Jun 2021 15:06:04 +0200 Subject: ci: add Windows CPython jobs --- .github/workflows/Test.yml | 64 +++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 63 insertions(+), 1 deletion(-) 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: @@ -427,6 +427,68 @@ jobs: with: 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 # -- cgit v1.2.3