Replaced test scripts with autotest #32
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 FreeBSD. | |
| name: build_freebsd | |
| on: | |
| pull_request: | |
| push: | |
| permissions: read-all | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| include: | |
| - configure_options: '' | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Start VM | |
| uses: vmactions/freebsd-vm@v1 | |
| with: | |
| usesh: true | |
| mem: 4096 | |
| prepare: | | |
| pkg install -y autoconf automake curl gettext git libtool pkgconf | |
| - name: Download test data | |
| shell: freebsd {0} | |
| run: | | |
| if test -x "synctestdata.sh"; then ./synctestdata.sh; fi | |
| - name: Build from source | |
| shell: freebsd {0} | |
| env: | |
| CC: ${{ matrix.compiler }} | |
| run: | | |
| ./synclibs.sh --use-head | |
| ./autogen.sh | |
| ./configure ${{ matrix.configure_options }} | |
| make > /dev/null | |
| - name: Run tests | |
| shell: freebsd {0} | |
| run: | | |
| tests/runtests.sh SKIP_MANPAGES_TESTS=1 VERBOSE=1 |