aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorumarcor <unai.martinezcorral@ehu.eus>2021-06-18 03:06:00 +0200
committerumarcor <unai.martinezcorral@ehu.eus>2021-06-19 21:33:20 +0200
commitee05ac37d1a78c899f9d48dcd45ee22e5a00f892 (patch)
tree61afde5924b0a41e1378dd3c333f26c6585ad251
parent512422696869fb5615f91cface74a634eb14ff54 (diff)
downloadghdl-ee05ac37d1a78c899f9d48dcd45ee22e5a00f892.tar.gz
ghdl-ee05ac37d1a78c899f9d48dcd45ee22e5a00f892.tar.bz2
ghdl-ee05ac37d1a78c899f9d48dcd45ee22e5a00f892.zip
ci: add MSYS2 jobs for testing DOM with AllVHDLSources.sh
-rw-r--r--.github/workflows/Test.yml52
1 files changed, 51 insertions, 1 deletions
diff --git a/.github/workflows/Test.yml b/.github/workflows/Test.yml
index d36abf28b..e99314ba9 100644
--- a/.github/workflows/Test.yml
+++ b/.github/workflows/Test.yml
@@ -314,12 +314,62 @@ jobs:
run: GHDL=ghdl ./testsuite/testsuite.sh ${{ matrix.suite }}
#
+# pyGHDL DOM Test
+#
+
+ DOM-test:
+ needs: win-build
+ runs-on: windows-latest
+ strategy:
+ fail-fast: false
+ max-parallel: 8
+ matrix:
+ include: [
+ {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.icon }} DOM · ${{ matrix.installs }} · ${{ matrix.pkg }} · ${{ matrix.suite }}'
+ defaults:
+ run:
+ shell: msys2 {0}
+ steps:
+
+ - name: '${{ matrix.icon }} Setup MSYS2'
+ uses: msys2/setup-msys2@v2
+ with:
+ msystem: ${{ matrix.installs }}
+ update: true
+ install: >
+ mingw-w64-${{ matrix.arch }}-python-pip
+ mingw-w64-${{ matrix.arch }}-python-setuptools
+
+ - name: '⚙️ git config'
+ run: git config --global core.autocrlf input
+ shell: bash
+
+ - name: '🧰 Checkout'
+ uses: actions/checkout@v2
+
+ - name: '📥 Download artifact: package'
+ uses: actions/download-artifact@v2
+
+ - name: '🚧 Install package and Python dependencies'
+ run: |
+ pacman --noconfirm -U artifact/mingw-w64-${{ matrix.arch }}-ghdl-${{ matrix.pkg }}-*.zst
+ pip3 install .
+
+ - name: Test the DOM and pretty print all VHDL sources
+ run: ./testsuite/pyunit/dom/AllVHDLSources.sh
+
+#
# 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, DOM-test ]
runs-on: ubuntu-latest
name: '📦 Release'
steps: