]> icculus.org git repositories - btb/d2x.git/blob - .github/workflows/c-cpp.yml
add options matrix
[btb/d2x.git] / .github / workflows / c-cpp.yml
1 name: C/C++ CI
2
3 on:
4   push:
5     branches: [ main ]
6   pull_request:
7     branches: [ main ]
8
9 jobs:
10   build:
11
12     runs-on: ubuntu-latest
13
14     strategy:
15       matrix:
16         debug: [enable-debug, disable-debug]
17         release: [enable-release, disable-release]
18         network: [enable-network, disable-network]
19
20     steps:
21     - uses: actions/checkout@v2
22     - name: install dependencies
23       run: sudo apt-get install -y libphysfs-dev libsdl1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev
24     - name: autogen
25       run: ./autogen.sh
26     - name: configure
27       run: |
28         ./configure --with-opengl --enable-editor \
29           --${{ matrix.debug }} \
30           --${{ matrix.release }} \
31           --${{ matrix.network }}
32
33     - name: make
34       run: make
35     - name: make check
36       run: make check
37     - name: make distcheck
38       run: make distcheck