added repo for wheel #7
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build pyrfr macOS binaries | ||
| on: | ||
| push: | ||
| branches: [ python3.10 ] | ||
| pull_request: | ||
| jobs: | ||
| build-macos: | ||
| runs-on: macos-latest | ||
| strategy: | ||
| matrix: | ||
| python-version: ["3.10"] | ||
| steps: | ||
| # Step 1: Checkout code | ||
| - name: Checkout code | ||
| uses: actions/checkout@v3 | ||
| # Step 2: Setup Python | ||
| - name: Setup Python | ||
| uses: actions/setup-python@v4 | ||
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
| # Step 3: Install system dependencies | ||
| - name: Install system dependencies | ||
| run: | | ||
| brew update | ||
| brew install cmake boost | ||
| # Step 4: Install Python build tools | ||
| - name: Install Python build tools | ||
| run: | | ||
| python -m pip install --upgrade pip wheel setuptools cython | ||
| - name: Clone pyrfr | ||
| run: | | ||
| git clone https://github.com/automl/random_forest_run.git pyrfr | ||
| cd pyrfr | ||
| git submodule update --init --recursive | ||
| # Step 5: Build pyrfr wheel | ||
| - name: Build pyrfr wheel | ||
| run: | | ||
| cd pyrfr | ||
| python -m pip wheel . -w ../wheelhouse | ||
| # Step 6: Upload the compiled wheel | ||
| - name: Upload pyrfr wheel | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: pyrfr-wheel | ||
| path: wheelhouse/*.whl | ||