Skip to content

Commit

Permalink
Workflow for check for Windows builds
Browse files Browse the repository at this point in the history
  • Loading branch information
axif0 committed Nov 10, 2024
1 parent f674d2f commit b45f6ef
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/python_package_ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,16 @@ jobs:
os:
- macos-latest
- ubuntu-latest
- windows-latest
python-version:
- "3.9"

runs-on: ${{ matrix.os }}

defaults:
run:
shell: bash

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -28,13 +33,20 @@ jobs:

- name: Create and Activate Virtual Environment
run: |
python3 -m venv venv
source venv/bin/activate
if [ "$RUNNER_OS" == "Windows" ]; then
python -m venv venv
source venv/Scripts/activate
else
python3 -m venv venv
source venv/bin/activate
fi
- name: Set up Homebrew
if: matrix.os == 'macos-latest'
uses: Homebrew/actions/setup-homebrew@master

- name: Install PyICU dependencies
if: matrix.os == 'macos-latest'
run: |
brew bundle install --file=Brewfile
# configure PATH & PKG_CONFIG_PATH as per
Expand Down

0 comments on commit b45f6ef

Please sign in to comment.