Skip to content

Commit

Permalink
Merge pull request #13 from gurgenyegoryan/main-dev
Browse files Browse the repository at this point in the history
  • Loading branch information
ashvardanian authored Sep 2, 2023
2 parents 352a5a1 + 7e79763 commit 961ddce
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
name: Test Python
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04, macOS-11, windows-2022]
python-version: ["3.11"]
Expand All @@ -33,8 +34,8 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Set up GCC
run: brew install gcc@12
- name: Set up Clang
run: brew install llvm
if: ${{ matrix.os == 'macOS-11' }}

- name: Set up MinGW
Expand All @@ -56,10 +57,19 @@ jobs:
python -m pip install .
if: ${{ matrix.os == 'ubuntu-22.04' }}

- name: Build locally on MacOS and Windows
- name: Build locally on MacOS
run: |
export LDFLAGS="-L/usr/local/opt/llvm/lib"
export CPPFLAGS="-I/usr/local/opt/llvm/include"
export CC=/usr/local/opt/llvm/bin/clang
export CXX=/usr/local/opt/llvm/bin/clang++
python -m pip install .
if: ${{ matrix.os != 'ubuntu-22.04' }}
if: ${{ matrix.os == 'macOS-11' }}

- name: Build locally on Windows
run: |
python -m pip install .
if: ${{ matrix.os == 'windows-2022' }}

- name: Test with PyTest
run: pytest python/test.py
Expand Down

0 comments on commit 961ddce

Please sign in to comment.