diff --git a/.github/workflows/build-wheels.yml b/.github/workflows/build-wheels.yml index 4d6b1824..31ea2653 100644 --- a/.github/workflows/build-wheels.yml +++ b/.github/workflows/build-wheels.yml @@ -2,9 +2,9 @@ name: Build WhiteboxTools on: workflow_dispatch: - push: - branches: - - master # Adjust to match your primary branch name + # push: + # branches: + # - master # Adjust to match your primary branch name jobs: build: @@ -12,7 +12,7 @@ jobs: strategy: matrix: # os: [ubuntu-latest, windows-latest, macOS-latest, ubuntu-20.04, ] - os: [windows-latest] #, macos-12, macOS-latest] + os: [windows-latest, macos-12] #, macOS-latest] python-version: ['3.11'] steps: @@ -34,4 +34,9 @@ jobs: uses: actions/upload-artifact@v4 with: name: wbt-${{ matrix.os }}-${{ matrix.python-version }} - path: WBT + path: /*.zip + + # - name: Download WBT + # uses: actions/download-artifact@v4 + # with: + # path: WBT diff --git a/build.py b/build.py index f20e9118..e9bfda5c 100755 --- a/build.py +++ b/build.py @@ -1,6 +1,6 @@ import platform, subprocess import os, sys -from shutil import copyfile, copytree, rmtree +from shutil import copyfile, copytree, make_archive, rmtree # To use this script: # @@ -158,4 +158,14 @@ else: print("No directory containing the register_license file found...") + +# Make a zip of the WBT folder +print("Creating zip artifact...") +proc = "amd64" +if "arm" in proc and "darwin" in platform.system(): + proc = "m_series" + +output_zip = os.path.join(app_dir, f"WhiteboxTools_{platform.system()}_{proc}") +make_archive(output_zip, 'zip', output_dir) + print("Done!") \ No newline at end of file