Skip to content

Commit

Permalink
ci: add release workflow to include ittapi wheels in release package (#…
Browse files Browse the repository at this point in the history
…155)

* added release workflow to add ittapi python wheels in to ittapi release package

* addressed review comments

---------

Co-authored-by: Eugeny Parshutin <eugeny.parshutin@intel.com>
  • Loading branch information
saurabhkatiyar91 and eparshut authored Aug 9, 2024
1 parent fc432d1 commit 8e526a8
Showing 1 changed file with 30 additions and 2 deletions.
32 changes: 30 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,40 @@ jobs:
build*/**/bin
build*/**/fortran
# build wheels only for cpython versions 3.8-3.12 on linux and windows 64-bits
python_build:
name: Build ittapi wheels
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
cibw_skip_args: "*_i686 *-musllinux_* cp313-*"
- os: windows-latest
cibw_skip_args: "*-win32 *_i686 cp313-*"
steps:
- name: Checkout sources
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Install cibuildwheels
run: python -m pip install cibuildwheel==2.20.0
- name: Build ittapi python wheels
run: python -m cibuildwheel python --output-dir python_dist/${{ runner.os }}
env:
CIBW_BUILD: cp3*
CIBW_SKIP: ${{ matrix.cibw_skip_args }}
- name: Upload artifact
uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0
with:
name: build-artifacts-python-${{ matrix.os }}
path: python_dist*/**

create_release:
permissions:
contents: write # for actions/create-release to create a release
name: Create release
runs-on: ubuntu-latest
needs: build
needs: [build, python_build]
steps:
- name: Checkout sources
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
Expand All @@ -74,7 +102,7 @@ jobs:
run: |
zip -r ittapi_build_${{ github.ref_name }}.zip include &&
cd build-artifacts &&
zip -rg ../ittapi_build_${{ github.ref_name }}.zip build*/**/bin build*/**/fortran &&
zip -rg ../ittapi_build_${{ github.ref_name }}.zip build*/**/bin build*/**/fortran python_dist &&
cd -
- name: Upload release asset
id: upload-release-asset
Expand Down

0 comments on commit 8e526a8

Please sign in to comment.