Skip to content

Commit

Permalink
fix actions build
Browse files Browse the repository at this point in the history
  • Loading branch information
mastercoms committed Aug 7, 2024
1 parent 80fa726 commit 9641ff2
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 32 deletions.
45 changes: 22 additions & 23 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,33 +5,32 @@ name: Python Build

on:
push:
branches: [ main ]
branches: [main]
pull_request:
branches: [ main ]
branches: [main]

jobs:
build:

runs-on: windows-latest

steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Dependencies
run: |
.\dependencies.bat
- name: Install PyInstaller
run: |
.\install_pyinstaller.bat
- name: Build
run: |
.\build.bat
- uses: actions/upload-artifact@v3
with:
name: PBSync.windows
path: dist/PBSync.exe
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Set up Python 3.12
uses: actions/setup-python@v4
with:
python-version: 3.12
- name: Dependencies
run: |
.\dependencies.bat
- name: Install PyInstaller
run: |
.\install_pyinstaller.bat
- name: Build
run: |
.\build.bat
- uses: actions/upload-artifact@v3
with:
name: PBSync.windows
path: dist/PBSync.exe
2 changes: 1 addition & 1 deletion build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ set PYTHONOPTIMIZE=2
set PYTHONHASHSEED=0
set PYI_STATIC_ZLIB=1
set OBJECT_MODE=64
pyinstaller --clean PBSync.spec %*
pipenv run pyinstaller --clean PBSync.spec %*
1 change: 1 addition & 0 deletions dependencies.bat
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@echo off
python -m pip install -U pip
python -m pip install -U pipenv
python -m pipenv install
9 changes: 1 addition & 8 deletions install_pyinstaller.bat
Original file line number Diff line number Diff line change
@@ -1,9 +1,2 @@
@echo off
git submodule update --init
cd pyinstaller
setlocal
cd bootloader
python ./waf all
cd ..
pip install .
cd ..
pipenv run .\install_pyinstaller_inner.bat
9 changes: 9 additions & 0 deletions install_pyinstaller_inner.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
@echo off
git submodule update --init
cd pyinstaller
setlocal
cd bootloader
python ./waf all
cd ..
pip install .
cd ..

0 comments on commit 9641ff2

Please sign in to comment.