Welcome to mirror list, hosted at ThFree Co, Russian Federation.

build.yml « workflows « .github - github.com/neutrinolabs/xorgxrdp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7f4d30ba4dcbf92432d9620f71dc60acc6cc2635 (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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: build and test
on:
  push:
    branches-ignore:
      - "gh-pages"
    tags-ignore:
      - "v0.[0-9]**"
  pull_request:
    branches-ignore:
      - "gh-pages"

jobs:
  build_and_test:
    strategy:
      fail-fast: false
      matrix:
        include:

          # GCC builds
          - CC: gcc
            CONF_FLAGS:
            CHECK: 1
            DISTCHECK: 1
            name_extra: Basic build and dist check

          - CC: gcc
            CONF_FLAGS: --without-simd
            name_extra: Without simd

          - CC: gcc
            CONF_FLAGS: --host=i686-linux
            CFLAGS: -m32
            arch: i386
            name_extra: 32-bit build

          # clang builds
          - CC: clang
            CONF_FLAGS:
            CHECK: 1
            DISTCHECK: 1
            name_extra: Basic build and dist check

          - CC: clang
            CONF_FLAGS: --without-simd
            name_extra: Without simd

          - CC: clang
            CONF_FLAGS: --host=i686-linux
            CFLAGS: -m32
            arch: i386
            name_extra: 32-bit build

    name: ${{ matrix.name_extra }} (${{ matrix.CC }})
    runs-on: ubuntu-latest
    env:
      CC: ${{ matrix.CC }}
      CFLAGS: ${{matrix.CFLAGS }}
      XRDP_CFLAGS: -I${{ github.workspace }}/xrdp/common

    steps:
      - uses: actions/checkout@v2
      - run: sudo scripts/install_xorgxrdp_build_dependencies_with_apt.sh ${{ matrix.arch }} --allow-downgrades --allow-remove-essential --allow-change-held-packages
      - run: git clone --depth 1 --branch=devel https://github.com/neutrinolabs/xrdp.git ${{ github.workspace}}/xrdp
      - run: ./bootstrap
      - run: ./configure ${{ matrix.CONF_FLAGS }}
      - run: make CFLAGS="$CFLAGS -O2 -Wall -Wwrite-strings -Werror"
      - if: ${{ matrix.CHECK }}
        run: make check
      - if: ${{ matrix.DISTCHECK }}
        run: make distcheck
      - if: ${{ always() }}
        name: Display test logs (make check only)
        run: scripts/display_test_logs