Skip to content

Commit

Permalink
added executable build
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasbisurgi authored and MariusWirtz committed Nov 27, 2024
1 parent 40b0566 commit 27d8ccf
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Build Executable

on:
push:
branches:
- master

jobs:
build-windows:
name: Build on Windows
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pyinstaller
pip install -r requirements.txt
- name: Build executable
run: |
pyinstaller --onefile `
--name "optimuspy" `
--add-data "executors.py:." `
--add-data "results.py:." `
--add-data "execution_mode.py:." `
--console `
optimuspy.py
- name: Upload executable artifact
uses: actions/upload-artifact@v3
with:
name: optimuspy-winOS
path: dist/optimuspy.exe
retention-days: 180
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,15 @@ For traceability and custom analysis, Optimus visualizes the results in a csv re
- Provide enough spare memory on TM1 server
- Fast mode determines first and last position only

## Need a .exe version of OptimusPy?

The latest executable build is available as an artifact in the GitHub Actions workflow runs. To download it:

1. Go to the [Actions tab](https://github.com/cubewise-code/optimus-py/actions) of the repository.
2. Click on the most recent workflow run titled **Build Executable**.
3. In the workflow summary, look for the **Artifacts** section.
4. Download the **optimuspy-winOS** artifact.

## Built With

* [TM1py](https://github.com/cubewise-code/TM1py) - A python wrapper for the TM1 REST API
Expand Down

0 comments on commit 27d8ccf

Please sign in to comment.