From 628fa4daf4170dc4b88c9e3d930ed34d51afc6e8 Mon Sep 17 00:00:00 2001 From: Bhavye Mathur Date: Wed, 27 Mar 2024 20:57:59 +0530 Subject: [PATCH] Add files via upload --- .github/workflows/build-goopylib.yml | 60 +++------------------------- 1 file changed, 5 insertions(+), 55 deletions(-) diff --git a/.github/workflows/build-goopylib.yml b/.github/workflows/build-goopylib.yml index 8e9955d8..c83c8307 100644 --- a/.github/workflows/build-goopylib.yml +++ b/.github/workflows/build-goopylib.yml @@ -1,13 +1,12 @@ # This workflow builds a shared library for goopylib using CMake & Python wheels -name: "Build Binary & Wheels" +name: "Build Binary" run-name: ${{ github.actor }} building goopylib on: workflow_dispatch: push: - branches: [ "master" ] paths: - src/** - goopylib/**/*.cpp @@ -20,7 +19,6 @@ on: - .github/workflows/build-goopylib.yml pull_request: - branches: [ "master" ] paths: - src/** - goopylib/**/*.cpp @@ -47,10 +45,10 @@ jobs: steps: - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 + with: + submodules: 'recursive' - - name: Configure submodules - run: git submodule update --init --recursive + - uses: actions/setup-node@v4 - name: Configure CMake run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} @@ -62,55 +60,7 @@ jobs: uses: test-room-7/action-update-file@v1 with: file-path: binaries/**/*.* - branch: master + branch: ${{ github.ref_name }} allow-dot: true commit-msg: Uploaded auto-built binaries github-token: ${{ secrets.GITHUB_TOKEN }} - - build-source-distribution: - name: Build source distribution - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - - - name: Configure submodules - run: git submodule update --init --recursive - - - name: Install dependencies - run: python -m pip install build - - - name: Create source distribution - run: python -m build --sdist - - - uses: actions/upload-artifact@v4 - with: - name: goopylib-source-distribution - path: dist/ - - build-wheels: - name: Build ${{ matrix.os }} Python wheels - runs-on: ${{ matrix.os }} - needs: build-cmake - - strategy: - fail-fast: false - matrix: - os: [ windows-latest, macos-latest ] - python: [ "cp38-", "cp39-", "cp310-", "cp311-" ] - - steps: - - uses: actions/checkout@v4 - - - name: Configure submodules - run: git submodule update --init --recursive - - - name: Build Python wheels - env: - CIBW_BUILD: ${{ matrix.python }}* - uses: pypa/cibuildwheel@v2.16.5 - - - uses: actions/upload-artifact@v4 - with: - name: goopylib-${{ matrix.python }}${{ matrix.os }}-wheels - path: wheelhouse/