summaryrefslogtreecommitdiff
path: root/src/contrib/SDL-2.30.2/.github/workflows/cpactions.yml
blob: a2e676f3f8c52638b0f6f261e2163f767c378904 (plain)
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Build (C/P Actions)

on: [push, pull_request]

jobs:
  freebsd:
    runs-on: ubuntu-latest
    name: FreeBSD
    timeout-minutes: 30
    steps:
    - uses: actions/checkout@v4
    - name: Build
      uses: cross-platform-actions/action@v0.23.0
      with:
        operating_system: freebsd
        version: '13.2'
        shell: bash
        run: |
          sudo pkg update
          sudo pkg install -y \
              gmake \
              pkgconf \
              libXcursor \
              libXext \
              libXinerama \
              libXi \
              libXfixes \
              libXrandr \
              libXScrnSaver \
              libXxf86vm \
              wayland \
              wayland-protocols \
              libxkbcommon \
              mesa-libs \
              libglvnd \
              evdev-proto \
              libinotify \
              alsa-lib \
              jackit \
              pipewire \
              pulseaudio \
              sndio \
              dbus \
              zh-fcitx \
              ibus \
              libudev-devd
          mkdir build_autotools
          export CPPFLAGS="-I/usr/local/include"
          export LDFLAGS="-L/usr/local/lib"
          (cd build_autotools && ../configure --disable-static)
          gmake -C build_autotools -j`sysctl -n hw.ncpu` V=1