Skip to content

Commit

Permalink
Fix actions
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixS90 committed Jun 5, 2024
1 parent b38011a commit 5998e00
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/build-reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
secrets:
CODECOV_TOKEN:
required: true
ACTIONS_RUNNER_DEBUG:
required: false
ACTIONS_STEP_DEBUG:
required: false
inputs:
Pure:
required: false
Expand Down Expand Up @@ -36,6 +40,8 @@ permissions:
contents: read
jobs:
CodeQualityAnalysis-Test:
# TODO: Only debugging
if: github.event_name != 'push'
name: Static Analysis and Tests
runs-on: windows-2019
outputs:
Expand Down Expand Up @@ -150,11 +156,11 @@ jobs:
PkgRootFolder: "${{ github.workspace }}/${{inputs.PkgRootFolder}}"
OS: "${{matrix.config.OS}}"
CIBWBEFOREALL: "${{matrix.config.CIBWBEFOREALL}}"
if: inputs.Pure == false
if: inputs.Pure == false && github.event_name != 'push' # TODO: Only debugging
PackageWheelsPure:
name: Package Pure Wheels
runs-on: windows-2019
if: inputs.Pure == true
if: inputs.Pure == true && github.event_name != 'push' # TODO: Only debugging
steps:
- uses: actions/checkout@v4.1.0
with:
Expand All @@ -177,6 +183,7 @@ jobs:
name: Wheel${{inputs.PyVersionLatest}}
path: "${{ github.workspace }}\\${{inputs.PkgRootFolder}}\\dist"
PackageSDist:
if: github.event_name != 'push' # TODO: Only debugging
name: Package Source Distribution
runs-on: windows-2019
steps:
Expand Down Expand Up @@ -215,9 +222,10 @@ jobs:
ArtifactName: Wheel${{inputs.PyVersionLatest}}
PkgRootFolder: "${{ github.workspace }}/${{inputs.PkgRootFolder}}"
RunShell: cmd
if: inputs.Pure == true
if: inputs.Pure == true && github.event_name != 'push' # TODO: Only debugging
needs: PackageWheelsPure
DownloadTestSdist:
if: github.event_name != 'push' # TODO: Only debugging
strategy:
matrix:
config:
Expand Down Expand Up @@ -254,7 +262,7 @@ jobs:
- PackageWheelsPure
- PackageSdist
runs-on: windows-2019
if: needs.CodeQualityAnalysis-Test.result == 'success' && contains(fromJSON('["skipped", "success"]'), needs.DownloadTestSdist.result) && contains(fromJSON('["skipped", "success"]'), needs.DownloadTestWheelsPure.result) && contains(fromJSON('["skipped", "success"]'), needs.PackageWheelsNonPure.result) && contains(fromJSON('["skipped", "success"]'), needs.PackageWheelsPure.result) && contains(fromJSON('["skipped", "success"]'), needs.PackageSdist.result) && github.event_name != 'pull_request' && needs.CodeQualityAnalysis-Test.outputs.pypi_released == 'true'
if: contains(fromJSON('["skipped", "success"]'), needs.DownloadTestSdist.result) && contains(fromJSON('["skipped", "success"]'), needs.DownloadTestWheelsPure.result) && contains(fromJSON('["skipped", "success"]'), needs.PackageWheelsNonPure.result) && contains(fromJSON('["skipped", "success"]'), needs.PackageWheelsPure.result) && contains(fromJSON('["skipped", "success"]'), needs.PackageSdist.result) && github.event_name != 'pull_request' && contains(fromJSON('["skipped", "success"]'), needs.CodeQualityAnalysis-Test.result) # && needs.CodeQualityAnalysis-Test.result == 'success' && needs.CodeQualityAnalysis-Test.outputs.pypi_released == 'true'
environment:
# TODO: Only for testing purposes
# name: pypi
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,5 @@ jobs:
CIBWBEFOREALLLINUX: yum install -y glibc-static perl-IPC-Cmd
secrets:
CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}}
ACTIONS_RUNNER_DEBUG: ${{secrets.ACTIONS_RUNNER_DEBUG}}
ACTIONS_STEP_DEBUG: ${{secrets.ACTIONS_STEP_DEBUG}}

0 comments on commit 5998e00

Please sign in to comment.