From e506f77e8f6ddeb3e114a3b7e3ce5f114192d801 Mon Sep 17 00:00:00 2001 From: 1138-4EB <1138-4EB@users.noreply.github.com> Date: Thu, 21 Nov 2019 17:39:24 +0000 Subject: 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 --- .github/workflows/push.yml | 76 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 .github/workflows/push.yml (limited to '.github') 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 -- cgit v1.2.3