File: main.yml

package info (click to toggle)
libappimage 1.0.4-5-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,360 kB
  • sloc: cpp: 4,678; ansic: 1,325; sh: 170; python: 27; makefile: 19
file content (49 lines) | stat: -rw-r--r-- 1,332 bytes parent folder | download | duplicates (3)
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
name: CI

on: [push, pull_request]

jobs:
  build-and-test:
    strategy:
      fail-fast: false
      matrix:
        DIST: [xenial, bionic, appimagebuild]
        ARCH: [x86_64, i386]

        include:
          - DIST: bionic
            ARCH: x86_64
            BUILD_TYPE: coverage
          - DIST: bionic
            ARCH: x86_64
            BUILD_TYPE: ""
            LIBAPPIMAGE_SHARED_ONLY: 1

    name: ${{ matrix.BUILD_TYPE }} ${{ matrix.DIST }} ${{ matrix.ARCH }} shared-only=${{ matrix.LIBAPPIMAGE_SHARED_ONLY }}
    runs-on: ubuntu-latest
    env:
      ARCH: ${{ matrix.ARCH }}
      DIST: ${{ matrix.DIST }}
      BUILD_TYPE: ${{ matrix.DIST }}
      LIBAPPIMAGE_SHARED_ONLY: ${{ matrix.LIBAPPIMAGE_SHARED_ONLY }}
    steps:
      - uses: actions/checkout@v2
        with:
          submodules: recursive
      - name: Build libappimage and run tests
        run: bash -ex ci/build-in-docker.sh
        env:
          DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
          DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}

  docs:
    name: docs
    runs-on: ubuntu-latest
    steps:
      - name: Install dependencies
        run: sudo apt-get install -y doxygen
      - uses: actions/checkout@v2
        with:
          submodules: recursive
      - name: Build API docs
        run: cd docs/ && ./make.sh html