From f583f003aedf35c42d1812fb9f8d97aa589760bd Mon Sep 17 00:00:00 2001 From: Michael Matloka Date: Fri, 6 Oct 2023 14:27:05 +0200 Subject: [PATCH] Build everything on macOS --- .github/workflows/build-hogql-parser.yml | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build-hogql-parser.yml b/.github/workflows/build-hogql-parser.yml index 6722ed8e50facc..d1a74ce72dbe0c 100644 --- a/.github/workflows/build-hogql-parser.yml +++ b/.github/workflows/build-hogql-parser.yml @@ -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 @@ -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: |