Skip to content

Commit

Permalink
Build everything on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
Twixes committed Oct 6, 2023
1 parent 55dd87b commit f583f00
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/build-hogql-parser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,9 @@ on:

jobs:
build-wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
name: Build wheels
runs-on: macos-12
timeout-minutes: 120
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04, macos-12]

steps:
- uses: actions/checkout@v4
Expand All @@ -34,17 +30,19 @@ jobs:
- uses: actions/setup-python@v3

- name: Build sdist
if: matrix.os == 'ubuntu-22.04' # Only build the sdist once
run: cd hogql_parser && python setup.py sdist

- name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.16.*

- name: Build wheels
run: cd hogql_parser && python -m cibuildwheel --output-dir dist
- name: Build wheels for macOS
run: cd hogql_parser && python -m cibuildwheel --output-dir dist --platform macos
env:
MACOSX_DEPLOYMENT_TARGET: '12' # A modern target allows us to use C++20

- name: Build wheels for Linux # Surprisingly, it's much faster to build Linux aarch64 wheels on macOS
run: cd hogql_parser && python -m cibuildwheel --output-dir dist --platform linux

- uses: actions/upload-artifact@v3
with:
path: |
Expand Down

0 comments on commit f583f00

Please sign in to comment.