Skip to content

378 test building Windows executable #9

378 test building Windows executable

378 test building Windows executable #9

Workflow file for this run

name: Create EIS executable for Windows
on:
pull_request:
branches: [ build ]
jobs:
pyinstaller-build:
runs-on: windows-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Install Conda
uses: conda-incubator/setup-miniconda@v2
with:
python-version: 3.9
environment-file: environment.yml
activate-environment: eis_toolkit
auto-activate-base: false
mamba-version: "*"
channel-priority: true
- name: Create requirements.txt
run: |
conda install pip
pip freeze > $GITHUB_WORKSPACE/requirements.txt
if [ -f "$GITHUB_WORKSPACE/requirements.txt" ]; then
echo "requirements.txt successfully created."
cat $GITHUB_WORKSPACE/requirements.txt # Optional: Output contents for debugging
else
echo "ERROR: requirements.txt not found."
exit 1 # Exit with an error code if the file is missing
fi
- name: Create Executable
uses: sayyid5416/pyinstaller@v1
with:
python_ver: '3.9.13'
spec: 'building/eis_toolkit_binary.spec'
requirements: '$GITHUB_WORKSPACE/requirements.txt'
upload_exe_with_name: 'EIS_Toolkit_executable'
options: --onefile, --name "EIS Toolkit executable", --windowed,