File: linux.yml

package info (click to toggle)
xsystem35 2.17.0-1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 8,096 kB
  • sloc: ansic: 38,159; java: 4,085; xml: 249; sh: 134; python: 15; makefile: 12
file content (29 lines) | stat: -rw-r--r-- 749 bytes parent folder | download | duplicates (2)
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
name: Linux Build
on: [push, pull_request]

jobs:
  build:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        build-type: ["Debug", "Release"]

    name: Linux ${{ matrix.build-type }}
    steps:
    - uses: actions/checkout@v4

    - name: Install Deps
      run: |
        sudo apt update
        sudo apt install libgtk-3-dev libsdl2-dev libsdl2-ttf-dev libsdl2-mixer-dev libwebp-dev libportmidi-dev libcjson-dev asciidoctor

    - name: Build
      run: |
        mkdir -p out/${{ matrix.build-type }}
        cd out/${{ matrix.build-type }}
        cmake -DCMAKE_BUILD_TYPE=${{ matrix.build-type }} ../../
        make -j4

    - name: Test
      run: ctest --output-on-failure
      working-directory: out/${{ matrix.build-type }}