diff --git a/.github/workflows/kubernator.yml b/.github/workflows/kubernator.yml index fce9d77..8c1a4fd 100644 --- a/.github/workflows/kubernator.yml +++ b/.github/workflows/kubernator.yml @@ -10,7 +10,7 @@ on: - develop jobs: build: - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} permissions: packages: write contents: read @@ -18,6 +18,9 @@ jobs: strategy: fail-fast: false matrix: + os: + - ubuntu-latest + - macos-latest python-version: - '3.12' - '3.11' @@ -30,6 +33,21 @@ jobs: TWINE_USERNAME: __token__ TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} steps: + - name: Install Docker on MacOS + if: | + runner.os == 'macOS' + + shell: bash + run: | + set -x + brew update + brew install docker + + colima start + sudo ln -sf $HOME/.colima/default/docker.sock /var/run/docker.sock + + while ! docker info > /dev/null 2>&1; do sleep 1 ; done + - name: Should Upload if: | github.event_name == 'push' && @@ -54,6 +72,7 @@ jobs: - name: Build with PyBuilder uses: pybuilder/build@master with: + homebrew-python: true python-version: ${{ matrix.python-version }} pyb-extra-args: ${{ env.PYB_EXTRA_ARGS }}