-
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.
Add actions to create other OS binaries
- Loading branch information
1 parent
8e5aea6
commit 3752e87
Showing
3 changed files
with
67 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -2,7 +2,6 @@ | |
|
||
name: Create Linux binary | ||
|
||
# Once a week (on Sunday) | ||
on: | ||
workflow_dispatch: | ||
release: | ||
|
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,34 @@ | ||
# Checks BiaPy code consistency | ||
|
||
name: Create macOS binary | ||
|
||
on: | ||
workflow_dispatch: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
run: | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.10" | ||
cache: "pip" # caching pip dependencies | ||
|
||
- name: Installing BiaPy-GUI dependencies | ||
run: pip install -r requirements.txt | ||
|
||
- name: Creating macOS binary | ||
run: | | ||
cp dist-macOS/main.spec main.spec | ||
pyinstaller main.spec | ||
- name: Upload public folder to Google Drive | ||
uses: Jodebu/upload-to-drive@master | ||
with: | ||
credentials: ${{ secrets.DRIVE_CREDENTIALS }} | ||
target: dist/BiaPy.app | ||
folder: ${{ secrets.FOLDER_FOR_NEW_BINARIES }} | ||
name: BiaPy-macOS.zip |
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,33 @@ | ||
# Checks BiaPy code consistency | ||
|
||
name: Create Windows binary | ||
|
||
on: | ||
workflow_dispatch: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
run: | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.10" | ||
cache: "pip" # caching pip dependencies | ||
|
||
- name: Installing BiaPy-GUI dependencies | ||
run: pip install -r requirements.txt | ||
|
||
- name: Creating Linux binary | ||
run: | | ||
cp dist-win/main.spec main.spec | ||
pyinstaller.exe main.spec | ||
- name: Upload public folder to Google Drive | ||
uses: Jodebu/upload-to-drive@master | ||
with: | ||
credentials: ${{ secrets.DRIVE_CREDENTIALS }} | ||
target: dist/BiaPy.exe | ||
folder: ${{ secrets.FOLDER_FOR_NEW_BINARIES }} |