Skip to content

Commit 0116d2e

Browse files
committed
Upgrade Windows build workflow to Python 3.13
Update the Albayan Windows CI workflow: switch to actions/setup-python@v5 and Python 3.13, add explicit checkout step name, and use pwsh for several steps. Upgrade pip and cx-Freeze during dependency installation. Add a step to remove markdown documentation before packaging, replace the old Inno Setup/download steps with an installer download + silent install, and detect ISCC.exe in both Program Files locations when packaging. Rename/upload the build artifact as albayan-beta-build and remove previous direct language-file downloads.
1 parent a0d4728 commit 0116d2e

1 file changed

Lines changed: 32 additions & 18 deletions

File tree

.github/workflows/albayan_beta.yml

Lines changed: 32 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This workflow will install Python dependencies and build the Albayan application using cx-Freeze on Windows.
1+
# This workflow installs dependencies and builds Albayan using cx-Freeze on Windows
22

33
name: Albayan_beta
44

@@ -16,39 +16,53 @@ jobs:
1616
runs-on: windows-latest
1717

1818
steps:
19-
- uses: actions/checkout@v4
19+
- name: Checkout repository
20+
uses: actions/checkout@v4
2021

21-
- name: Set up Python 3.12
22-
uses: actions/setup-python@v4
22+
- name: Set up Python 3.13 (latest patch)
23+
uses: actions/setup-python@v5
2324
with:
24-
python-version: "3.12"
25+
python-version: "3.13"
2526

26-
- name: Install dependencies
27+
- name: Upgrade pip and install dependencies
28+
shell: pwsh
2729
run: |
2830
python -m pip install --upgrade pip
29-
pip install cx-Freeze
30-
if (Test-Path "requirements.txt") { pip install -r requirements.txt }
31+
pip install --upgrade cx-Freeze
32+
if (Test-Path "requirements.txt") {
33+
pip install -r requirements.txt
34+
}
3135
3236
- name: Build with cx-Freeze
37+
shell: pwsh
3338
run: |
3439
python setup.py build
3540
36-
37-
- name: Download and install Inno Setup
41+
- name: Remove markdown documentation files
42+
shell: pwsh
3843
run: |
39-
Invoke-WebRequest -Uri https://jrsoftware.org/download.php/is.exe -OutFile is.exe
40-
Start-Process -Wait -FilePath .\is.exe -ArgumentList '/VERYSILENT', '/SUPPRESSMSGBOXES', '/NORESTART', '/SP'
44+
$docPath = "albayan_build\documentation"
45+
if (Test-Path $docPath) {
46+
Remove-Item "$docPath\UserGuide.md" -ErrorAction SilentlyContinue
47+
Remove-Item "$docPath\WhatsNew.md" -ErrorAction SilentlyContinue
48+
}
4149
42-
- name: Download Arabic and Vietnamese language files
50+
- name: Download and install latest Inno Setup
51+
shell: pwsh
4352
run: |
44-
Invoke-WebRequest -Uri https://raw.githubusercontent.com/jrsoftware/issrc/refs/heads/main/Files/Languages/Arabic.isl -OutFile "C:\Program Files (x86)\Inno Setup 6\Languages\Arabic.isl"
45-
Invoke-WebRequest -Uri https://raw.githubusercontent.com/jrsoftware/issrc/main/Files/Languages/Unofficial/Vietnamese.isl -OutFile "C:\Program Files (x86)\Inno Setup 6\Languages\Vietnamese.isl"
53+
Invoke-WebRequest -Uri https://jrsoftware.org/download.php/is.exe -OutFile is.exe
54+
Start-Process -Wait -FilePath .\is.exe -ArgumentList '/VERYSILENT','/SUPPRESSMSGBOXES','/NORESTART','/SP'
4655
4756
- name: Package with Inno Setup
57+
shell: pwsh
4858
run: |
49-
Start-Process -Wait -FilePath "C:\Program Files (x86)\Inno Setup 6\ISCC.exe" -ArgumentList "albayan.iss"
50-
51-
- name: Upload compressed build output
59+
$isccPath = "C:\Program Files (x86)\Inno Setup 6\ISCC.exe"
60+
if (!(Test-Path $isccPath)) {
61+
$isccPath = "C:\Program Files\Inno Setup 6\ISCC.exe"
62+
}
63+
Start-Process -Wait -FilePath $isccPath -ArgumentList "albayan.iss"
64+
65+
- name: Upload installer artifact
5266
uses: actions/upload-artifact@v4
5367
with:
5468
name: albayan-beta-build

0 commit comments

Comments
 (0)