|
| 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: Base |
| 9 | + |
| 10 | +# Trigger on pushes and PRs to any branch |
| 11 | +on: |
| 12 | + push: |
| 13 | + paths-ignore: |
| 14 | + - '.*.yml' |
| 15 | + - 'documentation/*' |
| 16 | + - '**/*.md' |
| 17 | + pull_request: |
| 18 | + paths-ignore: |
| 19 | + - '.*.yml' |
| 20 | + - 'documentation/*' |
| 21 | + - '**/*.md' |
| 22 | + |
| 23 | +env: |
| 24 | + SETUP_PATH: .ci-local:.ci |
| 25 | + EPICS_TEST_IMPRECISE_TIMING: YES |
| 26 | + |
| 27 | +jobs: |
| 28 | + build-base: |
| 29 | + name: ${{ matrix.name }} |
| 30 | + runs-on: ${{ matrix.os }} |
| 31 | + # Set environment variables from matrix parameters |
| 32 | + env: |
| 33 | + BASE: ${{ matrix.base }} |
| 34 | + CMP: ${{ matrix.cmp }} |
| 35 | + BCFG: ${{ matrix.configuration }} |
| 36 | + WINE: ${{ matrix.wine }} |
| 37 | + RTEMS: ${{ matrix.rtems }} |
| 38 | + RTEMS_TARGET: ${{ matrix.rtems_target }} |
| 39 | + EXTRA: ${{ matrix.extra }} |
| 40 | + TEST: ${{ matrix.test }} |
| 41 | + strategy: |
| 42 | + fail-fast: false |
| 43 | + matrix: |
| 44 | + # Job names also name artifacts, character limitations apply |
| 45 | + include: |
| 46 | + - os: ubuntu-20.04 |
| 47 | + cmp: gcc |
| 48 | + configuration: default |
| 49 | + base: "3.15" |
| 50 | + wine: "64" |
| 51 | + name: "3.15 Ub-20 gcc-9 + MinGW" |
| 52 | + |
| 53 | + - os: ubuntu-20.04 |
| 54 | + cmp: gcc |
| 55 | + configuration: default |
| 56 | + base: "7.0" |
| 57 | + wine: "64" |
| 58 | + name: "7.0 Ub-20 gcc-9 + MinGW" |
| 59 | + |
| 60 | + - os: ubuntu-20.04 |
| 61 | + cmp: gcc |
| 62 | + configuration: static |
| 63 | + base: "7.0" |
| 64 | + wine: "64" |
| 65 | + name: "7.0 Ub-20 gcc-9 + MinGW, static" |
| 66 | + |
| 67 | + - os: ubuntu-20.04 |
| 68 | + cmp: gcc |
| 69 | + configuration: static |
| 70 | + base: "7.0" |
| 71 | + extra: "CMD_CXXFLAGS=-std=c++11" |
| 72 | + name: "7.0 Ub-20 gcc-9 C++11, static" |
| 73 | + |
| 74 | + - os: ubuntu-20.04 |
| 75 | + cmp: clang |
| 76 | + configuration: default |
| 77 | + base: "7.0" |
| 78 | + name: "7.0 Ub-20 clang-10" |
| 79 | + |
| 80 | + - os: ubuntu-20.04 |
| 81 | + cmp: clang |
| 82 | + configuration: default |
| 83 | + base: "7.0" |
| 84 | + extra: "CMD_CXXFLAGS=-std=c++11" |
| 85 | + name: "7.0 Ub-20 clang-10 C++11" |
| 86 | + |
| 87 | + - os: ubuntu-20.04 |
| 88 | + cmp: gcc |
| 89 | + configuration: default |
| 90 | + base: "7.0" |
| 91 | + rtems: "5" |
| 92 | + rtems_target: RTEMS-pc686-qemu |
| 93 | + test: NO |
| 94 | + name: "7.0 Ub-20 gcc-9 + RT-5.1 pc686" |
| 95 | + |
| 96 | + - os: ubuntu-20.04 |
| 97 | + cmp: gcc |
| 98 | + configuration: default |
| 99 | + base: "7.0" |
| 100 | + rtems: "4.10" |
| 101 | + rtems_target: RTEMS-pc386-qemu |
| 102 | + test: NO |
| 103 | + name: "7.0 Ub-20 gcc-9 + RT-4.10" |
| 104 | + |
| 105 | + - os: ubuntu-20.04 |
| 106 | + cmp: gcc |
| 107 | + configuration: default |
| 108 | + base: "7.0" |
| 109 | + rtems: "4.9" |
| 110 | + rtems_target: RTEMS-pc386-qemu |
| 111 | + name: "7.0 Ub-20 gcc-9 + RT-4.9" |
| 112 | + |
| 113 | + - os: macos-latest |
| 114 | + cmp: clang |
| 115 | + configuration: default |
| 116 | + base: "7.0" |
| 117 | + name: "7.0 MacOS clang-12" |
| 118 | + |
| 119 | + - os: windows-2019 |
| 120 | + cmp: vs2019 |
| 121 | + configuration: default |
| 122 | + base: "7.0" |
| 123 | + name: "7.0 Win2019 MSC-19" |
| 124 | + |
| 125 | + - os: windows-2019 |
| 126 | + cmp: vs2019 |
| 127 | + configuration: static |
| 128 | + base: "7.0" |
| 129 | + name: "7.0 Win2019 MSC-19, static" |
| 130 | + |
| 131 | + - os: windows-2019 |
| 132 | + cmp: vs2019 |
| 133 | + configuration: debug |
| 134 | + base: "7.0" |
| 135 | + name: "7.0 Win2019 MSC-19, debug" |
| 136 | + |
| 137 | + - os: windows-2019 |
| 138 | + cmp: gcc |
| 139 | + configuration: default |
| 140 | + base: "7.0" |
| 141 | + name: "7.0 Win2019 mingw" |
| 142 | + |
| 143 | + steps: |
| 144 | + - uses: actions/checkout@v2 |
| 145 | + with: |
| 146 | + submodules: true |
| 147 | + - name: Cache Dependencies |
| 148 | + uses: actions/cache@v2 |
| 149 | + with: |
| 150 | + path: ~/.cache |
| 151 | + key: ${{ matrix.base }}/${{ matrix.os }}/${{ matrix.cmp }}/${{ matrix.configuration }}/${{ matrix.wine }}${{ matrix.rtems }}/${{ matrix.rtems_target }}/${{ matrix.extra }} |
| 152 | + - name: Automatic core dump analysis |
| 153 | + uses: mdavidsaver/ci-core-dumper@master |
| 154 | + - name: "apt-get install" |
| 155 | + run: | |
| 156 | + sudo apt-get update |
| 157 | + sudo apt-get -y install qemu-system-x86 g++-mingw-w64-x86-64 gdb |
| 158 | + if: runner.os == 'Linux' |
| 159 | + - name: Prepare and compile dependencies |
| 160 | + run: python .ci/cue.py prepare |
| 161 | + - name: Build main module |
| 162 | + run: python .ci/cue.py build |
| 163 | + - name: Run main module tests |
| 164 | + run: python .ci/cue.py -T 20M test |
| 165 | + - name: Upload tapfiles Artifact |
| 166 | + if: ${{ always() }} |
| 167 | + uses: actions/upload-artifact@v2 |
| 168 | + with: |
| 169 | + name: tapfiles ${{ matrix.name }} |
| 170 | + path: '**/O.*/*.tap' |
| 171 | + if-no-files-found: ignore |
| 172 | + - name: Collect and show test results |
| 173 | + if: ${{ always() }} |
| 174 | + run: python .ci/cue.py -T 5M test-results |
0 commit comments