Skip to content

Commit

Permalink
Split Python & C++ actions into 2 jobs
Browse files Browse the repository at this point in the history
Signed-off-by: Bhavye Mathur <[email protected]>
  • Loading branch information
BhavyeMathur committed Jan 10, 2024
1 parent d2db23c commit ee3d570
Showing 1 changed file with 20 additions and 19 deletions.
39 changes: 20 additions & 19 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,31 +52,32 @@ jobs:
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}

- name: Build goopylib
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}

- name: Test
working-directory: ${{github.workspace}}/build
run: ctest -C ${{env.BUILD_TYPE}}
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} -j 4

- name: Upload Binaries
uses: test-room-7/action-update-file@v1
with:
file-path: binaries/*
file-path: ./binaries/*
branch: master
allow-dot: true
commit-msg: Uploaded auto-built binaries
github-token: ${{ secrets.GITHUB_TOKEN }}

# build-wheels:
# name: Build Python wheels on ${{ matrix.os }}
# runs-on: ${{ matrix.os }}
# needs: build-cmake
#
# strategy:
# fail-fast: false
# matrix:
# os: [ windows-latest, macos-latest ]
#
# steps:
build-wheels:
name: Build Python wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
needs: build-cmake

strategy:
fail-fast: false
matrix:
os: [ windows-latest, macos-latest ]

steps:
- uses: actions/checkout@v3

- name: Configure submodules
run: git submodule update --init --recursive

- name: Build Python wheels
uses: pypa/[email protected]
with:
path: ./wheelhouse/*.whl

0 comments on commit ee3d570

Please sign in to comment.