summaryrefslogtreecommitdiffstats
path: root/.github/actions/autotools/action.yml
blob: 3161607c308772b71f678d98376bc0e991588d40 (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
name: Autotools Build
description: Builds Rofi using Autotools

inputs:
  cc:
    description: Compiler to use
    required: true
  windowmode:
    description: Enable window mode
    required: true

runs:
  using: composite
  steps:
    - id: pip
      run: pip install meson ninja
      shell: bash
    - id: setup
      run: |
        autoreconf --install

        mkdir builddir && cd builddir

        ../configure CC=${{ inputs.cc }} --${{ inputs.windowmode }}-windowmode
      shell: bash
    - id: build
      run: cd builddir && make
      shell: bash
    - id: test
      run: cd builddir && make distcheck
      shell: bash
    - id: doxy
      run: cd builddir && make doxy > doxygen.log 2>&1
      shell: bash
    - id: doxycheck
      uses: ./.github/actions/doxycheck
      with:
        logfile: builddir/doxygen.log
    - id: autoconf-dist-check
      shell: bash
      run: |
        tar xf builddir/rofi-*.tar.gz
        cd rofi-*/
        ./configure
        make 
        make check
    - id: upload
      uses: actions/upload-artifact@v3
      with:
        name: tarballs
        path: |
          builddir/*.tar.gz
          builddir/*.tar.xz