run-test: set LD_LIBRARY_PATH on Linux, to use correct libraries #139
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: C/C++ CI | |
| on: [ push, pull_request ] | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest] | |
| include: | |
| - os: ubuntu-latest | |
| env: | |
| ASAN: "yes" | |
| shell: bash | |
| - os: macos-latest | |
| shell: bash | |
| - os: windows-latest | |
| sys: mingw64 | |
| env: x86_64 | |
| shell: msys2 | |
| - os: windows-latest | |
| sys: mingw32 | |
| env: i686 | |
| shell: msys2 | |
| runs-on: ${{ matrix.os }} | |
| defaults: | |
| run: | |
| shell: ${{ matrix.shell }} {0} | |
| steps: | |
| - uses: msys2/setup-msys2@v2 | |
| if: ${{ matrix.os == 'windows-latest' }} | |
| with: | |
| release: false | |
| msystem: ${{matrix.sys}} | |
| install: >- | |
| patch git groff help2man | |
| mingw-w64-${{matrix.env}}-autotools | |
| mingw-w64-${{matrix.env}}-gcc | |
| - uses: actions/checkout@v3 | |
| with: { submodules: true } | |
| - name: Install dependencies (Ubuntu) | |
| if: ${{ matrix.os == 'ubuntu-latest' }} | |
| run: sudo apt-get -y install help2man | |
| - name: Install dependencies (macOS) | |
| if: ${{ matrix.os == 'macos-latest' }} | |
| run: | | |
| brew install help2man libtool automake | |
| # Prepend optional brew binary directories to PATH | |
| echo "$(brew --prefix)/opt/m4/bin" >> $GITHUB_PATH | |
| - name: Build | |
| run: ./build-aux/build.sh |