From ee3d570ed652761f41e1301f97e3ab00b5aee04f Mon Sep 17 00:00:00 2001 From: Bhavye Mathur Date: Wed, 10 Jan 2024 17:48:55 +0530 Subject: [PATCH] Split Python & C++ actions into 2 jobs Signed-off-by: Bhavye Mathur --- .github/workflows/cmake.yml | 39 +++++++++++++++++++------------------ 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index af07496b..22f51de4 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -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/cibuildwheel@v2.11.4 - with: - path: ./wheelhouse/*.whl