| 1 | name: Main build |
| 2 | |
| 3 | on: |
| 4 | push: |
| 5 | pull_request: |
| 6 | workflow_dispatch: |
| 7 | |
| 8 | jobs: |
| 9 | build: |
| 10 | strategy: |
| 11 | matrix: |
| 12 | compiler: |
| 13 | - { cc: "gcc-7", cxx: "g++-7" } |
| 14 | - { cc: "gcc-9", cxx: "g++-9" } |
| 15 | |
| 16 | runs-on: ubuntu-latest |
| 17 | container: |
| 18 | image: amd64/ubuntu:20.04 |
| 19 | |
| 20 | env: |
| 21 | CC: ${{ matrix.compiler.cc }} |
| 22 | CXX: ${{ matrix.compiler.cxx }} |
| 23 | |
| 24 | steps: |
| 25 | - name: Checkout |
| 26 | uses: actions/checkout@v4 |
| 27 | |
| 28 | - run: apt update |
| 29 | |
| 30 | - name: Install deps |
| 31 | run: DEBIAN_FRONTEND=noninteractive apt install -y |
| 32 | build-essential |
| 33 | cmake |
| 34 | g++-7 |
| 35 | gcc-7 |
| 36 | git |
| 37 | grep |
| 38 | libfluidsynth-dev |
| 39 | libfmt-dev |
| 40 | libfontconfig1-dev |
| 41 | libfreetype-dev |
| 42 | libmpg123-dev |
| 43 | libopenmpt-dev |
| 44 | libsndfile-dev |
| 45 | libspeechd-dev |
| 46 | libturbojpeg0-dev |
| 47 | qtbase5-dev |
| 48 | qtbase5-dev-tools |
| 49 | qtmultimedia5-dev |
| 50 | |
| 51 | - name: Configure |
| 52 | run: | |
| 53 | mkdir build |
| 54 | cd build |
| 55 | cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DSOUND=QT -DQT_VERSION=5 |
| 56 | |
| 57 | - name: Build |
| 58 | run: | |
| 59 | cd build |
| 60 | make -j`nproc` |
| 61 | make install DESTDIR=/tmp/gargoyle |