Skip to content

Commit

Permalink
print
Browse files Browse the repository at this point in the history
  • Loading branch information
rtobar committed Nov 24, 2023
1 parent 482842b commit afe09e1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/deploy-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ jobs:
shell: python
id: set-matrix
env:
ARCHS_LINUX: ${{ startsWith(github.event.ref, 'refs/tags/v') && env.ARCHS_LINUX_BASE || env.ARCHS_LINUX_ON_TAGS }}
ARCHS_MACOS: ${{ startsWith(github.event.ref, 'refs/tags/v') && env.ARCHS_MACOS_BASE || env.ARCHS_MACOS_ON_TAGS }}
ARCHS_WINDOWS: ${{ startsWith(github.event.ref, 'refs/tags/v') && env.ARCHS_WINDOWS_BASE || env.ARCHS_WINDOWS_ON_TAGS }}
ARCHS_LINUX: ${{ startsWith(github.event.ref, 'refs/tags/v') && env.ARCHS_LINUX_ON_TAGS || env.ARCHS_LINUX_BASE }}
ARCHS_MACOS: ${{ startsWith(github.event.ref, 'refs/tags/v') && env.ARCHS_MACOS_ON_TAGS || env.ARCHS_MACOS_BASE }}
ARCHS_WINDOWS: ${{ startsWith(github.event.ref, 'refs/tags/v') && env.ARCHS_WINDOWS_ON_TAGS || env.ARCHS_WINDOWS_BASE }}
run: |
import json
import os
Expand All @@ -39,9 +39,10 @@ jobs:
for os_name, archs_envvar in combinations
for arch in json.loads(os.getenv(archs_envvar))
]
matrix = {"includes": includes}
matrix = {"include": includes}
with open(os.getenv("GITHUB_OUTPUT"), "at") as github_output:
github_output.write(f'matrix={json.dumps(matrix)}')
print(f"Calculated matrix strategy:\n{json.dumps(matrix, indent=2)}")
build_wheels:
name: Build wheels on ${{matrix.arch}} for ${{ matrix.os }}
Expand Down

0 comments on commit afe09e1

Please sign in to comment.