Skip to content

Commit

Permalink
separate windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhrisca committed Nov 15, 2024
1 parent 18d9993 commit 4065c05
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, macos-latest]
os: [macos-latest]
python-version: ["3.12"]

steps:
Expand Down
47 changes: 47 additions & 0 deletions .github/workflows/build_windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: build_windows_macos

on: [push, pull_request]

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest]
python-version: ["3.12"]

steps:
- uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install packages
run: |
pip install build numpy wheel setuptools
pip install -r requirements_exe_build.txt
python setup.py bdist_wheel
pip install -e . --no-deps
pip install cmerg
- name: Build an executable
shell: bash
if: ${{ matrix.python-version == '3.12' }}
run: |
pip install build numpy wheel setuptools
pip install -r requirements_exe_build.txt
pip install fsspec==2024.6.1
python setup.py bdist_wheel
pip install -e . --no-deps
pip install cmerg
pyinstaller asammdf.spec --distpath dist/${RUNNER_OS} --noconfirm --clean
# see: https://docs.github.com/en/actions/advanced-guides/storing-workflow-data-as-artifacts
- name: Archive dist artifacts
uses: actions/upload-artifact@v3
with:
name: dist
path: dist/**
if-no-files-found: error

0 comments on commit 4065c05

Please sign in to comment.