|
| 1 | +# .github/workflows/ci-scripts-build.yml for use with EPICS Base ci-scripts |
| 2 | +# (see: https://github.com/epics-base/ci-scripts) |
| 3 | + |
| 4 | +# This is YAML - indentation levels are crucial |
| 5 | + |
| 6 | +# Set the 'name:' properties to values that work for you (pvxs) |
| 7 | + |
| 8 | +name: devlib2 |
| 9 | + |
| 10 | +# Trigger on pushes and PRs to any branch |
| 11 | +on: [push, pull_request] |
| 12 | + |
| 13 | +env: |
| 14 | + SETUP_PATH: .ci-local:.ci |
| 15 | + EPICS_TEST_IMPRECISE_TIMING: YES |
| 16 | + |
| 17 | +jobs: |
| 18 | + build-base: |
| 19 | + name: ${{ matrix.base }}/${{ matrix.os }}/${{ matrix.cmp }}/${{ matrix.configuration }}${{ matrix.rtems }}/${{ matrix.extra }} |
| 20 | + runs-on: ${{ matrix.os }} |
| 21 | + # Set environment variables from matrix parameters |
| 22 | + env: |
| 23 | + BASE: ${{ matrix.base }} |
| 24 | + CMP: ${{ matrix.cmp }} |
| 25 | + BCFG: ${{ matrix.configuration }} |
| 26 | + RTEMS: ${{ matrix.rtems }} |
| 27 | + EXTRA: ${{ matrix.extra }} |
| 28 | + TEST: ${{ matrix.test }} |
| 29 | + strategy: |
| 30 | + fail-fast: false |
| 31 | + matrix: |
| 32 | + include: |
| 33 | + - os: ubuntu-20.04 |
| 34 | + cmp: gcc |
| 35 | + configuration: default |
| 36 | + base: "7.0" |
| 37 | + wine: "64" |
| 38 | + |
| 39 | + - os: ubuntu-20.04 |
| 40 | + cmp: gcc |
| 41 | + configuration: static |
| 42 | + base: "7.0" |
| 43 | + |
| 44 | + - os: ubuntu-20.04 |
| 45 | + cmp: gcc |
| 46 | + configuration: default |
| 47 | + base: "3.15" |
| 48 | + |
| 49 | + - os: ubuntu-20.04 |
| 50 | + cmp: gcc |
| 51 | + configuration: default |
| 52 | + base: "3.14" |
| 53 | + |
| 54 | + - os: ubuntu-20.04 |
| 55 | + cmp: gcc |
| 56 | + configuration: static |
| 57 | + base: "7.0" |
| 58 | + extra: "CMD_CXXFLAGS=-std=c++11" |
| 59 | + |
| 60 | + - os: ubuntu-16.04 |
| 61 | + cmp: clang |
| 62 | + configuration: default |
| 63 | + base: "7.0" |
| 64 | + |
| 65 | + - os: ubuntu-20.04 |
| 66 | + cmp: clang |
| 67 | + configuration: default |
| 68 | + base: "7.0" |
| 69 | + extra: "CMD_CXXFLAGS=-std=c++11" |
| 70 | + |
| 71 | + - os: ubuntu-20.04 |
| 72 | + cmp: gcc |
| 73 | + configuration: default |
| 74 | + base: "7.0" |
| 75 | + rtems: "4.10" |
| 76 | + |
| 77 | + - os: ubuntu-20.04 |
| 78 | + cmp: gcc |
| 79 | + configuration: default |
| 80 | + base: "7.0" |
| 81 | + rtems: "4.9" |
| 82 | + |
| 83 | + - os: ubuntu-16.04 |
| 84 | + cmp: gcc-4.8 |
| 85 | + utoolchain: true |
| 86 | + configuration: default |
| 87 | + base: "7.0" |
| 88 | + |
| 89 | + - os: ubuntu-16.04 |
| 90 | + cmp: gcc-4.9 |
| 91 | + utoolchain: true |
| 92 | + configuration: default |
| 93 | + base: "7.0" |
| 94 | + |
| 95 | + - os: ubuntu-20.04 |
| 96 | + cmp: gcc-8 |
| 97 | + utoolchain: true |
| 98 | + configuration: default |
| 99 | + base: "7.0" |
| 100 | + |
| 101 | + - os: ubuntu-20.04 |
| 102 | + cmp: clang |
| 103 | + configuration: default |
| 104 | + base: "7.0" |
| 105 | + |
| 106 | + steps: |
| 107 | + - uses: actions/checkout@v2 |
| 108 | + with: |
| 109 | + submodules: true |
| 110 | + - name: Cache Dependencies |
| 111 | + uses: actions/cache@v2 |
| 112 | + with: |
| 113 | + path: ~/.cache |
| 114 | + key: ${{ matrix.base }}/${{ matrix.os }}/${{ matrix.cmp }}/${{ matrix.configuration }}/${{ matrix.wine }}${{ matrix.rtems }}/${{ matrix.extra }} |
| 115 | + - name: Automatic core dump analysis |
| 116 | + uses: mdavidsaver/ci-core-dumper@master |
| 117 | + - name: "apt-get install" |
| 118 | + run: | |
| 119 | + sudo apt-get update |
| 120 | + sudo apt-get -y install qemu-system-x86 g++-mingw-w64-x86-64 gdb |
| 121 | + if: runner.os == 'Linux' |
| 122 | + - name: "apt-get install ${{ matrix.cmp }}" |
| 123 | + run: | |
| 124 | + sudo apt-get -y install software-properties-common |
| 125 | + sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test |
| 126 | + sudo apt-get update |
| 127 | + sudo apt-get -y install ${{ matrix.cmp }} |
| 128 | + if: matrix.utoolchain |
| 129 | + - name: Prepare and compile dependencies |
| 130 | + run: python .ci/cue.py prepare |
| 131 | + - name: Build main module |
| 132 | + run: python .ci/cue.py build |
| 133 | + - name: Run main module tests |
| 134 | + run: python .ci/cue.py test |
| 135 | + - name: Collect and show test results |
| 136 | + run: python .ci/cue.py test-results |
0 commit comments