Skip to content

Commit

Permalink
Add support for manually triggering a release build
Browse files Browse the repository at this point in the history
  • Loading branch information
danieldk committed Jul 1, 2024
1 parent 7eb3b57 commit 52e8009
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ jobs:
runs-on: ["self-hosted", "${{ needs.build-and-push.outputs.runs_on }}", "multi-gpu"]
if: needs.build-and-push.outputs.runs_on != 'ubuntu-latest'
env:
PYTEST_FLAGS: ${{ (startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/main') && '--release' || '' }}
PYTEST_FLAGS: ${{ (startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/main' || inputs.release-test == 'true') && '--release' || '' }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/ci_build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,14 @@ on:
- "Dockerfile_amd"
- "Dockerfile_intel"
branches:
- 'main'
- "main"
workflow_dispatch:
inputs:
release-tests:
description: "Run release integration tests"
required: false
default: false
type: boolean

jobs:
build:
Expand Down

0 comments on commit 52e8009

Please sign in to comment.