diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e7ba147..5bde271 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,36 +1,38 @@ name: CI #on: [push, pull_request] -on: workflow_dispatch +on: [workflow_dispatch, push] jobs: - test: - runs-on: ${{ matrix.os }} - strategy: - matrix: - #os: [ubuntu-latest, macos-latest, windows-latest] - #python-version: ["3.9", "3.10", "3.11", "3.12"] - os: [macos-14] - python-version: ["3.9", "3.10", "3.11", "3.12"] - steps: - - uses: actions/checkout@v4 + #test: + # runs-on: ${{ matrix.os }} + # strategy: + # matrix: + # #os: [ubuntu-latest, macos-latest, windows-latest] + # #python-version: ["3.9", "3.10", "3.11", "3.12"] + # os: [macos-14] + # #python-version: ["3.9", "3.10", "3.11", "3.12"] + # python-version: ["3.11"] - - name: Setup Conda Environment - uses: conda-incubator/setup-miniconda@v2 - with: - miniforge-variant: Mambaforge - miniforge-version: latest - use-mamba: true - python-version: ${{ matrix.python-version }} - environment-file: ci/environment.yaml - activate-environment: test-environment + # steps: + # - uses: actions/checkout@v4 - - name: Run tests - shell: bash -l {0} - run: | - pip install -e . - python selftest.py + # - name: Setup Conda Environment + # uses: conda-incubator/setup-miniconda@v2 + # with: + # miniforge-variant: Mambaforge + # miniforge-version: latest + # use-mamba: true + # python-version: ${{ matrix.python-version }} + # environment-file: ci/environment.yaml + # activate-environment: test-environment + + # - name: Run tests + # shell: bash -l {0} + # run: | + # pip install -e . + # python selftest.py build: name: "Build wheels on ${{ matrix.os }} ${{ matrix.cibw_archs }}" @@ -39,24 +41,33 @@ jobs: fail-fast: false matrix: include: - - os: windows-2019 - cibw_archs: "AMD64 ARM64" - - os: macos-11 - cibw_archs: "x86_64" # arm64" # No freetype on non-native platforms - - os: "ubuntu-20.04" - cibw_archs: "aarch64" - - os: "ubuntu-20.04" - cibw_archs: "x86_64" + #- os: windows-2019 + # cibw_archs: "AMD64 ARM64" + #- os: macos-12 + # cibw_archs: "x86_64" + #- os: macos-13 + # cibw_archs: "arm64" + - os: macos-14 + cibw_archs: "universal2" + #- os: "ubuntu-20.04" + # cibw_archs: "aarch64" + #- os: "ubuntu-20.04" + # cibw_archs: "x86_64" steps: - uses: actions/checkout@v4 - - name: Set up QEMU + - name: Set up QEMU for Linux. if: runner.os == 'Linux' uses: docker/setup-qemu-action@v3 with: platforms: all + - name: Maker sure pipx is installed for arm64 macOS. + if: runner.platform == 'darwin' and runner.release >= 14 + - run: brew install pipx + - run: pipx ensurepath + - name: Build wheels uses: pypa/cibuildwheel@v2.16.2 env: