Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile binaries on CI action #5

Open
wants to merge 20 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/build_on_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
on:
release:
types: [created]
name: Build binaries
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
# Maybe move to a requirements file?
pip install PyInstaller
pip install simso==0.8
pip install PyQt5==5.11.3

- name: Generate binary
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
pyinstaller --onefile simsogui/__init__.py --name simsogui_ubuntu
elif [ "$RUNNER_OS" == "Windows" ]; then
pyinstaller --onefile simsogui/__init__.py --name simsogui_windows
elif [ "$RUNNER_OS" == "macOS" ]; then
pyinstaller --onefile simsogui/__init__.py --name simsogui_macOS
else
echo "$RUNNER_OS not supported"
exit 1
fi
shell: bash

- uses: AButler/[email protected]
with:
files: 'dist/simsogui_*'
repo-token: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# simso-gui

Graphical user interface of SimSo: https://github.com/MaximeCheramy/simso

2 changes: 2 additions & 0 deletions simsogui/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,5 @@ def run_gui():
aw = SimulatorWindow(args[0:])
aw.show()
sys.exit(app.exec_())

run_gui()