-
Notifications
You must be signed in to change notification settings - Fork 528
64 lines (50 loc) · 1.35 KB
/
windows-build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
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: Refresh Environment
run: |
Import-Module "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1"
Update-SessionEnvironment
- name: Check PATH
run: |
echo "PATH: $env:PATH"
- name: List Tesseract Directory
run: |
ls "C:\Program Files\Tesseract-OCR"
- name: Test Tesseract Command
run: |
& "C:\Program Files\Tesseract-OCR\tesseract.exe" --version
- name: Install dependencies
run: |
$env:Path += ";C:\Program Files\Tesseract-OCR"
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