Skip to content

Commit

Permalink
use macos x86_64; enable windows
Browse files Browse the repository at this point in the history
  • Loading branch information
dromer committed Sep 23, 2024
1 parent c5cb2c5 commit 577040f
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 34 deletions.
67 changes: 36 additions & 31 deletions .github/workflows/run_script.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:
working-directory: ${{github.workspace}}
run: brew install dfu-util

- name: Setup Python 3.12
- name: Setup Python 3.11
uses: actions/setup-python@v5
with:
python-version: '3.12'
python-version: '3.11'

- name: Run Packaging Script
working-directory: ${{github.workspace}}
Expand All @@ -40,35 +40,40 @@ jobs:
draft: true
files: Heavy-MacOS-Universal

# build-windows:
# name: Windows
# runs-on: windows-2022
# steps:
# - name: Install Packages
# run: choco install make -y

# - uses: actions/checkout@v3
# with:
# submodules: recursive

# - name: Run Packaging Script
# working-directory: ${{github.workspace}}
# run:
# ./build.bat

# - name: Archive Artifacts
# uses: actions/upload-artifact@v3
# with:
# name: Heavy-Win64
# path: ${{github.workspace}}/Heavy

# - name: Release Artifacts
# uses: softprops/action-gh-release@v1
# if: startsWith(github.ref, 'refs/tags/')
# with:
# prerelease: true
# draft: true
# files: Heavy-Win64
build-windows:
name: Windows
runs-on: windows-2022
steps:
- name: Install Packages
run: choco install make -y

- uses: actions/checkout@v3
with:
submodules: recursive

- name: Setup Python 3.11
uses: actions/setup-python@v5
with:
python-version: '3.11'

- name: Run Packaging Script
working-directory: ${{github.workspace}}
run:
./build.bat

- name: Archive Artifacts
uses: actions/upload-artifact@v3
with:
name: Heavy-Win64
path: ${{github.workspace}}/Heavy

- name: Release Artifacts
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
prerelease: true
draft: true
files: Heavy-Win64

build-linux:
name: Linux-x64
Expand Down
3 changes: 1 addition & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,7 @@ popd
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
mv ./hvcc/dist/pyinstaller/manylinux_2_31_x86_64/Heavy Heavy/bin/Heavy
elif [[ "$OSTYPE" == "darwin"* ]]; then
ls -l ./hvcc/dist/pyinstaller
exit 1
mv ./hvcc/dist/pyinstaller/macosx_14_0_arm64/Heavy Heavy/bin/Heavy
fi

# mv ./dist/Heavy Heavy/bin/Heavy
Expand Down
2 changes: 1 addition & 1 deletion hvcc
Submodule hvcc updated 1 files
+1 −1 pyproject.toml

0 comments on commit 577040f

Please sign in to comment.