aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEdu Garcia <28616+Arcnor@users.noreply.github.com>2021-02-02 11:27:48 +0000
committereine <6628437+eine@users.noreply.github.com>2021-02-02 16:06:31 +0100
commit76b03643b0123dc077acaa967a9c383deeb923d8 (patch)
treed8419e164572add61c266110d69e8cfb10914344
parent6e9f8e7d2fa6ed70fad586fbb049ae34b9dbbfa5 (diff)
downloadghdl-76b03643b0123dc077acaa967a9c383deeb923d8.tar.gz
ghdl-76b03643b0123dc077acaa967a9c383deeb923d8.tar.bz2
ghdl-76b03643b0123dc077acaa967a9c383deeb923d8.zip
ci: enable both mcode and llvm builds for macos
-rw-r--r--.github/workflows/Test.yml16
-rwxr-xr-xscripts/ci-run.sh7
2 files changed, 18 insertions, 5 deletions
diff --git a/.github/workflows/Test.yml b/.github/workflows/Test.yml
index 436dd1b68..1fa176474 100644
--- a/.github/workflows/Test.yml
+++ b/.github/workflows/Test.yml
@@ -154,8 +154,16 @@ jobs:
#
osx:
+ strategy:
+ fail-fast: false
+ max-parallel: 2
+ matrix:
+ include: [
+ { backend: mcode },
+ { backend: brew-llvm }
+ ]
runs-on: macOS-latest
- name: '๐ŸŽ macOS ยท mcode'
+ name: '๐ŸŽ macOS ยท ${{ matrix.backend }}'
steps:
- name: '๐Ÿงฐ Checkout'
@@ -176,15 +184,15 @@ jobs:
run: |
PATH=$PWD/gnat/bin:$PATH
./scripts/ci-run.sh -c
- mv ghdl-*.tgz ghdl-osx-mcode.tgz
+ mv ghdl-*.tgz ghdl-osx-${{ matrix.backend }}.tgz
env:
- TASK: macosx+mcode
+ TASK: macosx+${{ matrix.backend }}
GITHUB_OS: ${{ runner.os }}
- name: '๐Ÿ“ค Upload artifact: package'
uses: actions/upload-artifact@v2
with:
- path: ghdl-osx-mcode.tgz
+ path: ghdl-osx-${{ matrix.backend }}.tgz
#
# Windows Build
diff --git a/scripts/ci-run.sh b/scripts/ci-run.sh
index c6d04395c..d6bbbd8cd 100755
--- a/scripts/ci-run.sh
+++ b/scripts/ci-run.sh
@@ -294,6 +294,11 @@ build () {
CXX="clang++-$llvmver"
CONFIG_OPTS+=" --with-llvm-config=llvm-config-$llvmver CXX=$CXX"
;;
+ brew-llvm)
+ llvmprefix=`brew --prefix llvm`
+ CXX="clang++"
+ CONFIG_OPTS+=" --with-llvm-config=$llvmprefix/bin/llvm-config CXX=$CXX"
+ ;;
*)
printf "$ANSI_RED[GHDL - build] Unknown build $BACK $ANSI_NOCOLOR\n"
exit 1;;
@@ -424,7 +429,7 @@ ci_run () {
if [ "x$IS_MACOS" = "xtrue" ]; then
CC=clang \
- prefix="`cd ./install-mcode; pwd`/usr/local" \
+ prefix="`pwd`/install-$BACK/usr/local" \
./testsuite/testsuite.sh sanity gna vests vpi
else
# Build ghdl/ghdl:$GHDL_IMAGE_TAG image