From 4065c05b9e76ba0128948a979ff66def853192ea Mon Sep 17 00:00:00 2001 From: danielhrisca Date: Fri, 15 Nov 2024 15:14:51 +0200 Subject: [PATCH] separate windows build --- .github/workflows/build.yml | 2 +- .github/workflows/build_windows.yml | 47 +++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/build_windows.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 35cf9201b..2853364f9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,7 +7,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [windows-latest, macos-latest] + os: [macos-latest] python-version: ["3.12"] steps: diff --git a/.github/workflows/build_windows.yml b/.github/workflows/build_windows.yml new file mode 100644 index 000000000..867ab576c --- /dev/null +++ b/.github/workflows/build_windows.yml @@ -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