aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/push.yml
diff options
context:
space:
mode:
author1138-4EB <1138-4EB@users.noreply.github.com>2019-11-21 17:39:24 +0000
committertgingold <tgingold@users.noreply.github.com>2019-11-21 18:39:24 +0100
commite506f77e8f6ddeb3e114a3b7e3ce5f114192d801 (patch)
treed9387c5867ba98c81988591713249915230db9e3 /.github/workflows/push.yml
parent03862a4607fd127e6570a3e141a92265a23c2a68 (diff)
downloadghdl-e506f77e8f6ddeb3e114a3b7e3ce5f114192d801.tar.gz
ghdl-e506f77e8f6ddeb3e114a3b7e3ce5f114192d801.tar.bz2
ghdl-e506f77e8f6ddeb3e114a3b7e3ce5f114192d801.zip
Actions: add workflow 'push' (#1016)
* use CC=clang to build C sources on macOS * actions: ensure that shared libs are in the PATH on windows * ci: add GitHub Actions 'push' workflow * ci: fix group labels * dist: add GRAY to ansi_color * ci: use same scripts for GHA and Travis
Diffstat (limited to '.github/workflows/push.yml')
-rw-r--r--.github/workflows/push.yml76
1 files changed, 76 insertions, 0 deletions
diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml
new file mode 100644
index 000000000..3543c33ca
--- /dev/null
+++ b/.github/workflows/push.yml
@@ -0,0 +1,76 @@
+name: 'push'
+
+on: [push, pull_request]
+
+env:
+ CI: true
+
+jobs:
+
+ linux:
+ strategy:
+ fail-fast: false
+ max-parallel: 2
+ matrix:
+ task: [
+ { backend: mcode, args: "--gpl" },
+ { backend: mcode, args: "--synth" },
+ { backend: llvm-7, args: "--synth" },
+ { backend: gcc-8.3.0, args: "--synth" },
+ ]
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v1
+ - run: ./dist/ci-run.sh -c $TARGS
+ env:
+ TASK: buster+${{ matrix.task.backend }}
+ TARGS: ${{ matrix.task.args }}
+
+ osx:
+ runs-on: macOS-latest
+ steps:
+ - uses: actions/checkout@v1
+ - run: ./dist/ci-run.sh -c
+ env:
+ TASK: macosx+mcode
+ GITHUB_OS: ${{ runner.os }}
+
+ win:
+ strategy:
+ fail-fast: false
+ max-parallel: 2
+ matrix:
+ task: [
+ {installs: "MINGW32", pkg: "mcode"},
+ #{installs: "MINGW32", pkg: "llvm"}, ! Not yet functional
+ #{installs: "MINGW64", pkg: "mcode"}, ! mcode is not yet supported on win64
+ {installs: "MINGW64", pkg: "llvm"},
+ ]
+ runs-on: windows-latest
+ env:
+ MINGW_INSTALLS: ${{ matrix.task.installs }}
+ TARGET: ${{ matrix.task.pkg }}
+ steps:
+ - uses: numworks/setup-msys2@v1
+ with:
+ msystem: MSYS
+ - run: msys2do pacman -Syu --noconfirm
+ - uses: actions/checkout@v1
+ - name: Build and (hopefully) install package
+ run: |
+ msys2do ./dist/msys2-mingw/run.sh -b
+ - name: Test package
+ run: msys2do ./dist/msys2-mingw/run.sh -t
+ env:
+ MSYSTEM: ${{ matrix.task.installs }}
+
+#---
+
+# TODO:
+# - Cache
+# - 'gnat' directory in macOS job
+#
+# - Re-package a MINGW/MSYS2 package to provide a 'standalone' tarball/zipfile.
+# - https://github.com/ghdl/ghdl/issues/318#issuecomment-286246287
+#
+# - Add GNAT GPL 32-bit build job with mcode backend