-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: Build | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
paths-ignore: | ||
- 'README.md' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
|
||
- name: Install pyinstaller | ||
run: pip install pyinstaller | ||
|
||
- name: Install pipreqs | ||
run: pip install pipreqs | ||
|
||
- name: Generate requirements.txt | ||
run: | | ||
pipreqs --force . | ||
- name: Install dependencies | ||
run: | | ||
pip install -r requirements.txt | ||
- name: Set up UPX | ||
run: | | ||
choco install upx -y | ||
- name: Build EXE | ||
run: | | ||
pyinstaller oscam_connection_manager.spec | ||
- name: Create artifact | ||
run: | | ||
cd dist | ||
move oscam_connection_manager_*.exe .. | ||
- name: Copy PDF files | ||
run: | | ||
mkdir artifact_contents | ||
move oscam_connection_manager_*.exe artifact_contents/ | ||
copy *.pdf artifact_contents/ 2>nul || echo No PDF files found | ||
- name: Save ZIP artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: oscam_connection_manager-win64 | ||
path: artifact_contents/ |