aboutsummaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorUnai Martinez-Corral <38422348+umarcor@users.noreply.github.com>2020-12-31 17:58:30 +0000
committerGitHub <noreply@github.com>2020-12-31 18:58:30 +0100
commit10fe69ec4e7edca2c20aa4e49644f9cef1313a9e (patch)
treec83f2b5331d412bce13721d9d0fe9972abacbb0f /.github
parent373a991d17fd3cab3188ce23d43baae5d474f89c (diff)
downloadghdl-10fe69ec4e7edca2c20aa4e49644f9cef1313a9e.tar.gz
ghdl-10fe69ec4e7edca2c20aa4e49644f9cef1313a9e.tar.bz2
ghdl-10fe69ec4e7edca2c20aa4e49644f9cef1313a9e.zip
ci/msys2: split build and test (#1559)
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/push.yml67
1 files changed, 56 insertions, 11 deletions
diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml
index c7503450f..3effaf5c6 100644
--- a/.github/workflows/push.yml
+++ b/.github/workflows/push.yml
@@ -106,7 +106,7 @@ jobs:
GITHUB_OS: ${{ runner.os }}
#
-# Windows
+# Windows Build
#
win:
@@ -121,7 +121,7 @@ jobs:
#{installs: "MINGW64", arch: x86_64, pkg: "mcode"}, ! mcode is not yet supported on win64
{installs: "MINGW64", arch: x86_64, pkg: "llvm"},
]
- name: '馃煪 MSYS2 路 ${{ matrix.installs }} 路 ${{ matrix.pkg }}'
+ name: '馃煪 Build 路 ${{ matrix.installs }} 路 ${{ matrix.pkg }}'
env:
MINGW_INSTALLS: ${{ matrix.installs }}
defaults:
@@ -138,7 +138,6 @@ jobs:
base-devel
git
mingw-w64-${{ matrix.arch }}-toolchain
- mingw-w64-${{ matrix.arch }}-python-pip
- run: git config --global core.autocrlf input
shell: bash
@@ -154,9 +153,6 @@ jobs:
cd dist/msys2-${{ matrix.pkg }}
makepkg-mingw --noconfirm --noprogressbar -sCLf
- - name: Install package
- run: pacman --noconfirm -U dist/msys2-${{ matrix.pkg }}/mingw-w64-*-any.pkg.tar.zst
-
- name: '馃摛 Upload artifact: builddir'
uses: actions/upload-artifact@v2
with:
@@ -170,12 +166,61 @@ jobs:
with:
path: ./dist/msys2-${{ matrix.pkg }}/mingw-*ghdl*.pkg.tar.zst
- - name: Test package
+#
+# Windows Test
+#
+
+ win-test:
+ needs: win
+ runs-on: windows-latest
+ strategy:
+ fail-fast: false
+ max-parallel: 8
+ matrix:
+ sys: [
+ {installs: "MINGW32", arch: i686, pkg: "mcode"},
+ #{installs: "MINGW32", arch: i686, pkg: "llvm"}, ! Not yet functional
+ #{installs: "MINGW64", arch: x86_64, pkg: "mcode"}, ! mcode is not yet supported on win64
+ {installs: "MINGW64", arch: x86_64, pkg: "llvm"},
+ ]
+ suite: [
+ 'sanity pyunit vpi',
+ 'gna',
+ 'vests',
+ 'synth',
+ ]
+ name: '馃煪 Test 路 ${{ matrix.sys.installs }} 路 ${{ matrix.sys.pkg }} 路 ${{ matrix.suite }}'
+ defaults:
+ run:
+ shell: msys2 {0}
+ steps:
+
+ - name: '馃煪 Setup MSYS2'
+ uses: msys2/setup-msys2@v2
+ with:
+ msystem: ${{ matrix.sys.installs }}
+ update: true
+ install: >
+ mingw-w64-${{ matrix.sys.arch }}-diffutils
+ mingw-w64-${{ matrix.sys.arch }}-gcc
+ mingw-w64-${{ matrix.sys.arch }}-python-pip
+
+ - 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.sys.arch }}-ghdl-${{ matrix.sys.pkg }}-*.zst
pip3 install -r testsuite/requirements.txt
- GHDL=ghdl ./testsuite/testsuite.sh
- env:
- MSYSTEM: ${{ matrix.installs }}
+
+ - name: Test package
+ run: GHDL=ghdl ./testsuite/testsuite.sh ${{ matrix.suite }}
#
# NIGHTLY
@@ -183,7 +228,7 @@ jobs:
nightly:
if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request'
- needs: [ lin, win ]
+ needs: [ lin, win-test ]
runs-on: ubuntu-latest
name: '馃摝 Nightly'
steps: