name: freebsd_autotools

on:
  workflow_dispatch:

permissions:
  contents: read

jobs:
  freebsd_autotools:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - name: FreeBSD-with-autotools
        uses: cross-platform-actions/action@v0.23.0
        with:
          operating_system: freebsd
          sync_files: runner-to-vm
          version:  '14.0'
          run: |
            uname -a
            whoami
            freebsd-version
            echo $SHELL
            sudo pkg install -y python3 bash automake libtool
            sudo pkg install -y pkgconf gmake binutils lzlib 
            autoreconf --warnings=all  -vif
            ./configure
            make
            make check


