File: main.yml

package info (click to toggle)
libphysfs 3.2.0-1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 1,300 kB
  • sloc: ansic: 18,547; perl: 210; sh: 166; cpp: 152; makefile: 3
file content (30 lines) | stat: -rw-r--r-- 1,025 bytes parent folder | download
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
30
name: Build

on: [push, pull_request]

jobs:
  Build:
    name: ${{ matrix.platform.name }}
    runs-on: ${{ matrix.platform.os }}
    strategy:
      matrix:
        platform:  # !!! FIXME: figure out an efficient way to get SDL2 on the Windows/Mac bots.
        - { name: Linux,   os: ubuntu-20.04, flags: -GNinja }
        - { name: MinGW,   os: windows-latest, flags: -GNinja -DCMAKE_C_COMPILER=x86_64-w64-mingw32-gcc -DCMAKE_SYSTEM_NAME=Windows }
        - { name: Windows, os: windows-latest }
        - { name: MacOS,   os: macos-latest }
    steps:
    - name: Setup Linux dependencies
      if: runner.os == 'Linux'
      run: |
        sudo apt-get update
        sudo apt-get install ninja-build
    - name: Setup MinGW dependencies
      if: contains(matrix.platform.name, 'MinGW')
      run:  choco install ninja
    - name: Get PhysicsFS sources
      uses: actions/checkout@v2
    - name: Configure CMake
      run: cmake -B build ${{ matrix.platform.flags }}
    - name: Build
      run: cmake --build build/