1 name: Build with Autotools
26 - uses: actions/checkout@v3
30 - if: ${{ inputs.use-ccache }}
31 uses: hendrikmuhs/ccache-action@v1.2
33 - name: Configuring ccache to use precompiled headers
34 if: ${{ inputs.use-ccache }}
36 ln -s /usr/bin/ccache /usr/local/bin/${{ inputs.cxx }}
37 /usr/bin/ccache --set-config=sloppiness=pch_defines,time_macros,include_file_mtime,include_file_ctime
38 /usr/bin/ccache --set-config=pch_external_checksum=true
41 - name: Install required packages
44 sudo apt-get install \
46 libcurl4-openssl-dev \
49 - name: Generate configure
53 run: ./configure ${{ inputs.configure-opts }}
55 CXX: ${{ inputs.cxx }}
56 CXXFLAGS: ${{ inputs.cxx-flags }}
58 - name: Build with distcheck
59 if: ${{ inputs.distcheck }}
60 run: make DISTCHECK_CONFIGURE_FLAGS="CXX=\"${{ inputs.cxx }}\" CXXFLAGS=\"${{ inputs.cxx-flags }}\" ${{ inputs.configure-opts }}" -j$(nproc) distcheck >/dev/null
63 if: ${{ !inputs.distcheck }}
64 run: make -j$(nproc) >/dev/null