Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 16 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,22 @@ on:

jobs:

check-tag-existance:
name: "Check if tag exists"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: "Get CAPIO-CL version"
run: echo "CAPIO_CL_VERSION=$(grep -E 'VERSION [0-9]+\.[0-9]+\.[0-9]+' CMakeLists.txt | awk '{print $2}')" >> $GITHUB_ENV
- name: "Check if tag exists"
id: check-tag
uses: mukunku/tag-exists-action@v1.6.0
with:
tag: ${{ env.CAPIO_CL_VERSION }}

build-macos-ubuntu-wheels:
name: "Build python Wheels"
if: ${{ jobs.check-tag-existance.outputs.exists == 'false' }}
strategy:
matrix:
os: [ 'ubuntu-latest', 'macos-latest', 'macos-15-intel' ]
Expand Down Expand Up @@ -65,6 +79,7 @@ jobs:

riscv-wheels:
name: "Build RiscV Ubuntu python wheels"
if: ${{ jobs.check-tag-existance.outputs.exists == 'false' }}
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down Expand Up @@ -117,24 +132,15 @@ jobs:

github:
name: "Create GitHub Release"
if: ${{ jobs.check-tag-existance.outputs.exists == 'false' && github.event.workflow_run.conclusion == 'success' }}
needs: [ riscv-wheels, build-macos-ubuntu-wheels ]
runs-on: ubuntu-latest
permissions:
contents: write
if: ${{ github.event.workflow_run.conclusion == 'success' }}

steps:
- uses: actions/checkout@v4

- name: "Get CAPIO-CL version"
run: echo "CAPIO_CL_VERSION=$(grep -E 'VERSION [0-9]+\.[0-9]+\.[0-9]+' CMakeLists.txt | awk '{print $2}')" >> $GITHUB_ENV

- name: "Check if tag exists"
id: check-tag
uses: mukunku/tag-exists-action@v1.6.0
with:
tag: ${{ env.CAPIO_CL_VERSION }}

- name: "Download built wheel artifacts"
uses: actions/download-artifact@v4
with:
Expand Down
Loading