Skip to content

Commit

Permalink
[wheel build] test new Docker images and Py 3.10+ wheels on Test PyPI
Browse files Browse the repository at this point in the history
  • Loading branch information
q-posev committed Aug 17, 2024
1 parent ec502ea commit 834e831
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions .github/workflows/build-wheels.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@

# Controls when the workflow will run
on:
# Run this workflow after the TREXIO CI completed
workflow_run:
workflows: [ "TREXIO CI" ]
#branches: [ master ]
types:
- completed
#on:
# # Run this workflow after the TREXIO CI completed
# workflow_run:
# workflows: [ "TREXIO CI" ]
# branches: [ master ]
# types:
# - completed

# Workflow to build and publish wheels.
# in the get_commit_message job: Include [wheel build] in your commit message to trigger this build.
name: Build CPython wheels
jobs:

get_commit_message:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
#if: ${{ github.event.workflow_run.conclusion == 'success' }}
name: Get commit message
runs-on: ubuntu-22.04
outputs:
Expand All @@ -30,14 +30,19 @@ jobs:
run: |
set -xe
COMMIT_MSG=$(git log --no-merges -1 --oneline)
echo "::set-output name=message::$COMMIT_MSG"
RUN="0"
if [[ "$COMMIT_MSG" == *"[wheel build]"* ]]; then
RUN="1"
fi
echo "message=$RUN" >> $GITHUB_OUTPUT
echo github.ref ${{ github.ref }}
build_linux_wheels:
name: Build Linux wheels for different versions of CPython on manylinux_x86_64
needs: get_commit_message
if: >-
contains(needs.get_commit_message.outputs.message, '[wheel build]') ||
contains(needs.get_commit_message.outputs.message, '1') ||
(github.repository == 'TREX-CoE/trexio' && startsWith(github.ref, 'refs/tags/v'))
runs-on: ubuntu-22.04
strategy:
Expand Down

0 comments on commit 834e831

Please sign in to comment.