File: ci.yml

package info (click to toggle)
ocaml-ffmpeg 1.2.8-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 924 kB
  • sloc: ansic: 6,448; ml: 6,294; makefile: 3
file content (48 lines) | stat: -rw-r--r-- 1,568 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: CI

on: [push]

concurrency:
  group: ${{ github.workflow }}-${{ github.ref }}
  cancel-in-progress: true

jobs:
  build:
    runs-on: ${{ matrix.os }}
    strategy:
      fail-fast: false
      matrix:
        os: [macos-latest, ubuntu-latest]
        compiler: [4.14, 5.3]
        version: [n8.0.1]
        include:
          - os: ubuntu-latest
            compiler: 4.14
            version: n7.1
    env:
      OPAMASSUMEDEPEXTS: ${{ matrix.os == 'ubuntu-latest' }}
    steps:
    - name: Install local build
      if: ${{ matrix.os == 'ubuntu-latest' }}
      run: |
        sudo add-apt-repository universe -y
        sudo add-apt-repository multiverse -y
        sudo add-apt-repository restricted -y
        sudo sed -i 's/Types: deb$/Types: deb deb-src/g' /etc/apt/sources.list.d/*.sources || true
        sudo apt-get update
        sudo apt-get build-dep ffmpeg -y
        git clone --depth 1 --branch ${{ matrix.version }} --single-branch https://git.ffmpeg.org/ffmpeg.git ffmpeg
        cd ffmpeg
        ./configure --prefix=/usr --disable-x86asm --enable-gpl \
                    --enable-nonfree --disable-programs --disable-doc \
                    --enable-shared --enable-libtheora --enable-libvpx \
                    --enable-libmp3lame --enable-libvorbis --enable-libsoxr
        make -j4
        sudo make install
    - name: Build and test module
      uses: savonet/build-and-test-ocaml-module@main
      with:
        ocaml-compiler: ${{ matrix.compiler }}
    - name: Run CI tests
      run: |
        opam exec dune build @citest