diff options
| -rw-r--r-- | .github/workflows/Test.yml | 64 | 
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  # | 
