windows build #3
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
name: Windows Build | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.11.5' | |
- name: Install Tesseract | |
run: | | |
choco install tesseract | |
echo "C:\Program Files\Tesseract-OCR" >> $GITHUB_PATH | |
- name: Check Tesseract Path | |
run: | | |
Get-Command tesseract | |
- name: Print PATH and Check Tesseract Directory | |
run: | | |
echo "PATH: $env:PATH" | |
ls "C:\Program Files\Tesseract-OCR" | |
- name: Install dependencies | |
run: | | |
pip install -r requirements.txt | |
- name: Run PyInstaller | |
run: | | |
cd poker | |
pyinstaller main.spec | |
# Add other necessary steps here | |
- name: Install NSIS | |
run: | | |
choco install nsis | |
- name: Run NSIS | |
run: makensis -V3 DeepMindPokerbot.nsi | |
- name: Upload Artifacts | |
uses: actions/upload-artifact@v2 | |
with: | |
name: compiled-app | |
path: path/to/your/compiled/app |