Applied updates and changes for CI tests #11
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
| # Build from source on Linux. | |
| name: build_linux | |
| on: | |
| pull_request: | |
| push: | |
| permissions: read-all | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| include: | |
| - os: ubuntu-24.04 | |
| compiler: 'clang' | |
| configure_options: '' | |
| - os: ubuntu-24.04-arm | |
| compiler: 'clang' | |
| configure_options: '' | |
| - os: ubuntu-24.04 | |
| compiler: 'gcc' | |
| configure_options: '' | |
| - os: ubuntu-24.04-arm | |
| compiler: 'gcc' | |
| configure_options: '' | |
| - os: ubuntu-24.04 | |
| compiler: 'gcc' | |
| configure_options: '--enable-wide-character-type' | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install build dependencies | |
| run: | | |
| sudo apt -y install autoconf automake autopoint build-essential git libtool pkg-config | |
| - name: Download test data | |
| run: | | |
| if test -x "synctestdata.sh"; then ./synctestdata.sh; fi | |
| - name: Build from source | |
| env: | |
| CC: ${{ matrix.compiler }} | |
| run: | | |
| tests/build.sh ${{ matrix.configure_options }} | |
| - name: Run tests | |
| run: | | |
| tests/runtests.sh | |
| build_dist: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| include: | |
| - os: ubuntu-24.04 | |
| compiler: 'gcc' | |
| configure_options: '' | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install build dependencies | |
| run: | | |
| sudo apt -y install autoconf automake autopoint build-essential git libtool pkg-config | |
| - name: Download test data | |
| run: | | |
| if test -x "synctestdata.sh"; then ./synctestdata.sh; fi | |
| - name: Build from source | |
| env: | |
| CC: ${{ matrix.compiler }} | |
| run: | | |
| tests/build.sh ${{ matrix.configure_options }} | |
| - name: Run tests | |
| run: | | |
| make distcheck | |
| build_shared: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| include: | |
| - os: ubuntu-24.04 | |
| compiler: 'gcc' | |
| configure_options: '' | |
| - os: ubuntu-24.04 | |
| compiler: 'gcc' | |
| configure_options: '--enable-wide-character-type' | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install build dependencies | |
| run: | | |
| sudo apt -y install autoconf automake autopoint build-essential git libtool pkg-config | |
| - name: Download test data | |
| run: | | |
| if test -x "synctestdata.sh"; then ./synctestdata.sh; fi | |
| - name: Prepare shared libraries | |
| run: | | |
| tests/syncsharedlibs.sh --use-head | |
| - name: Build from source | |
| env: | |
| CC: ${{ matrix.compiler }} | |
| run: | | |
| tests/build.sh ${{ matrix.configure_options }} | |
| - name: Run tests | |
| run: | | |
| tests/runtests.sh |