aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/push.yml
blob: 37eea6b763e642f006fcdfeea1507af3c5ed1620 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
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: |
        brew update
        brew install p7zip
        ./dist/macosx/install-ada.sh
    - run: |
        PATH=$PWD/gnat/bin:$PATH
        ./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