Try enabling MacOS Latest (26) to see if it works #248
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: kubernator | |
| on: | |
| pull_request: | |
| branches: | |
| - master | |
| - develop | |
| push: | |
| branches: | |
| - master | |
| - develop | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.os }} | |
| permissions: | |
| packages: write | |
| contents: read | |
| continue-on-error: false | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: | |
| - ubuntu-latest | |
| python-version: | |
| - '3.14' | |
| - '3.13' | |
| - '3.12' | |
| - '3.11' | |
| - '3.10' | |
| - '3.9' | |
| include: | |
| - os: macos-15-intel | |
| python-version: '3.14' | |
| env: | |
| DEPLOY_PYTHONS: "3.13" | |
| DEPLOY_OSES: "Linux" | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| TWINE_USERNAME: __token__ | |
| TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} | |
| steps: | |
| # - name: Install Podman on MacOS | |
| # if: | | |
| # runner.os == 'macOS' | |
| # | |
| # shell: bash | |
| # run: | | |
| # set -x | |
| # brew update | |
| # brew install podman | |
| # podman machine init | |
| # podman machine start | |
| # podman info | |
| # - name: Install HyperKit on MacOS | |
| # if: | | |
| # runner.os == 'macOS' | |
| # | |
| # shell: bash | |
| # run: | | |
| # set -x | |
| # brew update | |
| # brew install hyperkit | |
| # hyperkit -v | |
| - name: Aggressive cleanup | |
| run: | | |
| # Remove Java (JDKs) | |
| sudo rm -rf /usr/lib/jvm | |
| # Remove .NET SDKs | |
| sudo rm -rf /usr/share/dotnet | |
| # Remove Swift toolchain | |
| sudo rm -rf /usr/share/swift | |
| # Remove Haskell (GHC) | |
| sudo rm -rf /usr/local/.ghcup | |
| # Remove Julia | |
| sudo rm -rf /usr/local/julia* | |
| # Remove Android SDKs | |
| sudo rm -rf /usr/local/lib/android | |
| # Remove Chromium (optional if not using for browser tests) | |
| sudo rm -rf /usr/local/share/chromium | |
| # Remove Microsoft/Edge and Google Chrome builds | |
| sudo rm -rf /opt/microsoft /opt/google | |
| # Remove Azure CLI | |
| sudo rm -rf /opt/az | |
| # Remove PowerShell | |
| sudo rm -rf /usr/local/share/powershell | |
| # Remove CodeQL and other toolcaches | |
| sudo rm -rf /opt/hostedtoolcache | |
| docker system prune -af || true | |
| docker builder prune -af || true | |
| df -h | |
| - name: Install Docker on MacOS | |
| if: | | |
| runner.os == 'macOS' | |
| shell: bash | |
| run: | | |
| set -x | |
| brew update | |
| brew install docker colima | |
| colima version | |
| CPU_COUNT=$(sysctl -n hw.ncpu) | |
| MEMORY=$(sysctl hw.memsize | awk '{print $2/1024/1024/1024}') | |
| COLIMA_ARGS="--cpu $CPU_COUNT --memory $MEMORY --arch x86_64 --vm-type=vz --mount-type=virtiofs" | |
| colima start $COLIMA_ARGS | |
| sudo ln -sf $HOME/.colima/default/docker.sock /var/run/docker.sock | |
| while ! docker info > /dev/null 2>&1; do sleep 1 ; done | |
| which docker | |
| docker info | |
| - name: Setup Docker on macOS | |
| if: | | |
| runner.os == 'macOS' | |
| id: setup-docker | |
| uses: douglascamata/[email protected] | |
| - name: Should Upload | |
| if: | | |
| github.event_name == 'push' && | |
| contains(env.DEPLOY_OSES, runner.os) && | |
| contains(env.DEPLOY_PYTHONS, matrix.python-version) | |
| shell: bash | |
| run: echo "PYB_EXTRA_ARGS=+upload" >> "$GITHUB_ENV" | |
| - name: Login to GitHub Container Registry for Upload | |
| if: | | |
| github.event_name == 'push' && | |
| contains(env.DEPLOY_OSES, runner.os) && | |
| contains(env.DEPLOY_PYTHONS, matrix.python-version) | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Build with PyBuilder | |
| uses: pybuilder/build@master | |
| with: | |
| homebrew-python: true | |
| python-version: ${{ matrix.python-version }} | |
| pyb-extra-args: ${{ env.PYB_EXTRA_ARGS }} | |
| build-summary: | |
| if: success() || failure() | |
| runs-on: ubuntu-latest | |
| name: Build Stable Summary | |
| needs: build | |
| steps: | |
| - name: Check build matrix status | |
| if: needs.build.result != 'success' | |
| run: exit 1 |