aboutsummaryrefslogtreecommitdiffstats
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
parent373a991d17fd3cab3188ce23d43baae5d474f89c (diff)
downloadghdl-10fe69ec4e7edca2c20aa4e49644f9cef1313a9e.tar.gz
ghdl-10fe69ec4e7edca2c20aa4e49644f9cef1313a9e.tar.bz2
ghdl-10fe69ec4e7edca2c20aa4e49644f9cef1313a9e.zip
ci/msys2: split build and test (#1559)
-rw-r--r--.github/workflows/push.yml67
-rw-r--r--dist/msys2-llvm/PKGBUILD12
-rw-r--r--dist/msys2-mcode/PKGBUILD11
3 files changed, 73 insertions, 17 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:
diff --git a/dist/msys2-llvm/PKGBUILD b/dist/msys2-llvm/PKGBUILD
index 6de6916dc..b837eed16 100644
--- a/dist/msys2-llvm/PKGBUILD
+++ b/dist/msys2-llvm/PKGBUILD
@@ -5,15 +5,21 @@ pkgver=ci
pkgrel=1
pkgdesc="GHDL: the open-source analyzer, compiler, simulator and (experimental) synthesizer for VHDL (LLVM backend) (mingw-w64)"
arch=('any')
-depends=('zlib-devel' "${MINGW_PACKAGE_PREFIX}-clang")
-makedepends=("${MINGW_PACKAGE_PREFIX}-gcc-ada")
+depends=('zlib-devel'
+ "${MINGW_PACKAGE_PREFIX}-clang"
+ "${MINGW_PACKAGE_PREFIX}-gcc-ada")
build() {
mkdir "${srcdir}/builddir"
cd "${srcdir}/builddir"
export CC=clang
export CXX=clang++
- ../../../../configure --prefix=${MINGW_PREFIX} --with-llvm-config="llvm-config --link-static" LDFLAGS="-static" --enable-libghdl --enable-synth
+ ../../../../configure \
+ --prefix=${MINGW_PREFIX} \
+ --with-llvm-config="llvm-config --link-static" \
+ LDFLAGS="-static" \
+ --enable-libghdl \
+ --enable-synth
make GNATMAKE="gnatmake -j$(nproc)"
}
diff --git a/dist/msys2-mcode/PKGBUILD b/dist/msys2-mcode/PKGBUILD
index 70423d64d..11cac47c5 100644
--- a/dist/msys2-mcode/PKGBUILD
+++ b/dist/msys2-mcode/PKGBUILD
@@ -5,13 +5,18 @@ pkgver=ci
pkgrel=1
pkgdesc="GHDL: the open-source analyzer, compiler, simulator and (experimental) synthesizer for VHDL (mcode backend) (mingw-w64)"
arch=('any')
-depends=('zlib-devel')
-makedepends=("${MINGW_PACKAGE_PREFIX}-gcc" "${MINGW_PACKAGE_PREFIX}-gcc-ada")
+depends=('zlib-devel'
+ "${MINGW_PACKAGE_PREFIX}-gcc-ada")
+makedepends=("${MINGW_PACKAGE_PREFIX}-gcc")
build() {
mkdir "${srcdir}/builddir"
cd "${srcdir}/builddir"
- ../../../../configure --prefix=${MINGW_PREFIX} LDFLAGS=-static --enable-libghdl --enable-synth
+ ../../../../configure \
+ --prefix=${MINGW_PREFIX} \
+ LDFLAGS=-static \
+ --enable-libghdl \
+ --enable-synth
make GNATMAKE="gnatmake -j$(nproc)"
}