@@ -162,8 +162,8 @@ jobs:
162162 compression-level : 0
163163 retention-days : 1
164164
165- build-addon :
166- name : build-addon
165+ build-32-bit- addon :
166+ name : build-32-bit- addon
167167 continue-on-error : false
168168 needs : [l10n, zip-rules, rust-32]
169169 runs-on : ubuntu-latest
@@ -202,6 +202,60 @@ jobs:
202202 - name : Run scons to build .addon file
203203 run : |
204204 scons
205+ - name : Rename addon for 32-bit
206+ run : |
207+ for f in *.nvda-addon; do
208+ mv "$f" "${f%.nvda-addon}-32.nvda-addon"
209+ done
210+ - name : Upload the addon
211+ uses : actions/upload-artifact@v4
212+ with :
213+ name : addon
214+ path : " *.nvda-addon"
215+ compression-level : 0
216+ retention-days : 1
217+
218+
219+ build-64-bit-addon :
220+ name : build-64-bit-addon
221+ continue-on-error : false
222+ needs : [l10n, zip-rules, rust-64]
223+ runs-on : ubuntu-latest
224+ steps :
225+ - name : Checkout code
226+ uses : actions/checkout@v3
227+ # download the 64 build
228+ - name : Download 64 bit build
229+ uses : actions/download-artifact@v4
230+ with :
231+ name : libmathcat_py-64-3.13-win.zip
232+ # download the Rules dir (not part of checkout)
233+ - name : Download 64 bit build
234+ uses : actions/download-artifact@v4
235+ with :
236+ name : Rules.zip
237+ # put things where they belong
238+ - name : Set up addons dir
239+ run : |
240+ unzip libmathcat_py-64-3.13-win.zip
241+ mv libmathcat_py.pyd Rules.zip addon/globalPlugins/MathCAT
242+ cd addon/globalPlugins/MathCAT
243+ sed 's/^import wx\.xrc/# import wx.xrc/' --in-place MathCATgui.py # fix wx file
244+ unzip Rules.zip
245+ rm Rules.zip
246+ # build the addon
247+ - name : Set up Python
248+ uses : actions/setup-python@v4
249+ with :
250+ python-version : 3.13 # needed for scons
251+ - name : Install scons dependencies
252+ run : |
253+ pip install scons markdown
254+ sudo apt update
255+ sudo apt install gettext
256+ - name : Run scons to build .addon file
257+ run : |
258+ scons
205259 - name : Upload the addon
206260 uses : actions/upload-artifact@v4
207261 with :
@@ -213,7 +267,7 @@ jobs:
213267 pre-release :
214268 name : Pre Release
215269 continue-on-error : false
216- needs : [zip-rules, rust-32, rust-64, linux-64, build-addon]
270+ needs : [zip-rules, rust-32, rust-64, linux-64, build-32-bit-addon, build-64-bit- addon]
217271 runs-on : ubuntu-latest
218272 steps :
219273 - name : Checkout code
0 commit comments