-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split Python & C++ actions into 2 jobs
Signed-off-by: Bhavye Mathur <[email protected]>
- Loading branch information
1 parent
d2db23c
commit ee3d570
Showing
1 changed file
with
20 additions
and
19 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |