Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
jblindsay committed May 17, 2024
1 parent 5ce419f commit 7068045
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 6 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/build-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@ 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:
runs-on: ${{ matrix.os }}
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:
Expand All @@ -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
12 changes: 11 additions & 1 deletion build.py
Original file line number Diff line number Diff line change
@@ -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:
#
Expand Down Expand Up @@ -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!")

0 comments on commit 7068045

Please sign in to comment.