Skip to content

Commit

Permalink
Fix Windows workflow, update dispatch paths
Browse files Browse the repository at this point in the history
  • Loading branch information
mwydmuch committed Aug 16, 2024
1 parent 0920a1e commit 34c78a7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/build-and-test-windows-wheels.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Build Python wheels for Windows and make PyPI release
name: Build and test Python wheels for Windows and make PyPI release

on:
workflow_dispatch:
push:
paths:
- '.github/workflows/**'
- '.github/workflows/build-and-test-windows-wheels.yml'
- 'include/**'
- 'scripts/**'
- 'src/**'
Expand Down Expand Up @@ -37,7 +37,7 @@ env:
VIZDOOM_BUILD_GENERATOR_NAME: Visual Studio 17 2022

jobs:
build_wheels:
build_and_test_wheels:
strategy:
matrix:
os: [windows-2022]
Expand Down Expand Up @@ -125,12 +125,13 @@ jobs:
python -m pip install --upgrade setuptools wheel twine
python setup.py bdist_wheel
- name: Report built wheels
- name: Report built wheels (bash)
shell: bash
run: |
ls -l ./dist/*.whl
# Test
- name: Install wheel
- name: Install wheel (bash)
shell: bash
run: |
python -m pip install $(ls dist/vizdoom-*.whl)[test]
Expand All @@ -146,7 +147,7 @@ jobs:

upload_pypi:
name: Upload to PyPI
needs: [build_wheels]
needs: [build_and_test_wheels]
runs-on: ubuntu-latest
environment: pypi
permissions:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Build and test
on:
push:
paths:
- '.github/workflows/**'
- '.github/workflows/build-and-test.yml'
- 'include/**'
- 'scripts/**'
- 'src/**'
Expand All @@ -29,7 +29,7 @@ env:
HOMEBREW_NO_INSTALL_CLEANUP: 1

jobs:
build:
build_and_test:
strategy:
matrix:
os: [ubuntu-22.04, ubuntu-24.04, macos-13, macos-14]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
workflow_dispatch:
push:
paths:
- '.github/workflows/**'
- '.github/workflows/build-wheels.yml'
- 'include/**'
- 'scripts/**'
- 'src/**'
Expand Down

0 comments on commit 34c78a7

Please sign in to comment.