8
8
- ' .github/workflows/build.yml'
9
9
- ' setup.py'
10
10
- ' requirements.txt'
11
+ - ' *.iss'
11
12
pull_request :
12
13
paths :
13
14
- ' .github/workflows/build.yml'
14
15
- ' setup.py'
15
16
- ' requirements.txt'
17
+ - ' *.iss'
16
18
workflow_dispatch :
17
19
18
20
env :
25
27
build-win-py38 : # RCs will still be built and signed by hand
26
28
runs-on : windows-latest
27
29
steps :
28
- - uses : actions/checkout@v3
30
+ - uses : actions/checkout@v4
29
31
- name : Install python
30
- uses : actions/setup-python@v4
32
+ uses : actions/setup-python@v5
31
33
with :
32
34
python-version : ' 3.8'
33
35
- name : Download run-time dependencies
@@ -46,25 +48,42 @@ jobs:
46
48
cd build
47
49
Rename-Item "exe.$NAME" Archipelago
48
50
7z a -mx=9 -mhe=on -ms "../dist/$ZIP_NAME" Archipelago
51
+ Rename-Item Archipelago "exe.$NAME" # inno_setup.iss expects the original name
49
52
- name : Store 7z
50
- uses : actions/upload-artifact@v3
53
+ uses : actions/upload-artifact@v4
51
54
with :
52
55
name : ${{ env.ZIP_NAME }}
53
56
path : dist/${{ env.ZIP_NAME }}
54
57
retention-days : 7 # keep for 7 days, should be enough
58
+ - name : Build Setup
59
+ run : |
60
+ & "${env:ProgramFiles(x86)}\Inno Setup 6\iscc.exe" inno_setup.iss /DNO_SIGNTOOL
61
+ if ( $? -eq $false ) {
62
+ Write-Error "Building setup failed!"
63
+ exit 1
64
+ }
65
+ $contents = Get-ChildItem -Path setups/*.exe -Force -Recurse
66
+ $SETUP_NAME=$contents[0].Name
67
+ echo "SETUP_NAME=$SETUP_NAME" >> $Env:GITHUB_ENV
68
+ - name : Store Setup
69
+ uses : actions/upload-artifact@v4
70
+ with :
71
+ name : ${{ env.SETUP_NAME }}
72
+ path : setups/${{ env.SETUP_NAME }}
73
+ retention-days : 7 # keep for 7 days, should be enough
55
74
56
75
build-ubuntu2004 :
57
76
runs-on : ubuntu-20.04
58
77
steps :
59
78
# - copy code below to release.yml -
60
- - uses : actions/checkout@v3
79
+ - uses : actions/checkout@v4
61
80
- name : Install base dependencies
62
81
run : |
63
82
sudo apt update
64
83
sudo apt -y install build-essential p7zip xz-utils wget libglib2.0-0
65
84
sudo apt -y install python3-gi libgirepository1.0-dev # should pull dependencies for gi installation below
66
85
- name : Get a recent python
67
- uses : actions/setup-python@v4
86
+ uses : actions/setup-python@v5
68
87
with :
69
88
python-version : ' 3.11'
70
89
- name : Install build-time dependencies
@@ -100,13 +119,13 @@ jobs:
100
119
source venv/bin/activate
101
120
python setup.py build_exe --yes
102
121
- name : Store AppImage
103
- uses : actions/upload-artifact@v3
122
+ uses : actions/upload-artifact@v4
104
123
with :
105
124
name : ${{ env.APPIMAGE_NAME }}
106
125
path : dist/${{ env.APPIMAGE_NAME }}
107
126
retention-days : 7
108
127
- name : Store .tar.gz
109
- uses : actions/upload-artifact@v3
128
+ uses : actions/upload-artifact@v4
110
129
with :
111
130
name : ${{ env.TAR_NAME }}
112
131
path : dist/${{ env.TAR_NAME }}
0 commit comments