File tree Expand file tree Collapse file tree 1 file changed +17
-7
lines changed
Expand file tree Collapse file tree 1 file changed +17
-7
lines changed Original file line number Diff line number Diff line change 3030 rust :
3131 name : build pyd file
3232 needs : l10n
33- runs-on : ubuntu -latest
33+ runs-on : windows -latest # needs to run on windows because no 32-bit python on linux
3434 steps :
3535 - name : Checkout code
3636 uses : actions/checkout@v3
@@ -41,10 +41,12 @@ jobs:
4141 architecture : ' x86'
4242 - name : Set up Rust
4343 run : cargo build --target i686-pc-windows-msvc --release
44- - name : Copy MathCAT.pyd file and fix wx file
45- run : |
46- cp target/i686-pc-windows-msvc/release/libmathcat_py.dll addon/globalPlugins/MathCAT/libmathcat.pyd
47- sed 's/^import wx\.xrc/# import wx.xrc/' --in-place "addon/globalPlugins/MathCAT/MathCATgui.py"
44+ - name : Upload dll to use with scons
45+ uses : actions/upload-artifact@v4
46+ with :
47+ name : MathCAT dll
48+ path : target/i686-pc-windows-msvc/release/libmathcat_py.dll
49+ retention-days : 1
4850
4951 scons :
5052 name : Build with scons
@@ -58,12 +60,20 @@ jobs:
5860 uses : actions/setup-python@v4
5961 with :
6062 python-version : 3.11
61- - name : Install dependencies
63+ - name : Download MathCAT dll
64+ uses : actions/download-artifact@v4
65+ with :
66+ name : MathCAT_dll
67+ - shell : bash
68+ run : |
69+ cp libmathcat_py.dll addon/globalPlugins/MathCAT/libmathcat.pyd
70+ sed 's/^import wx\.xrc/# import wx.xrc/' --in-place "addon/globalPlugins/MathCAT/MathCATgui.py" # fix wx file
71+ - name : Install scons dependencies
6272 run : |
6373 pip install scons markdown
6474 sudo apt update
6575 sudo apt install gettext
66- - name : Run scons
76+ - name : Run scons to build addon
6777 run : scons
6878
6979 pre-release :
You can’t perform that action at this time.
0 commit comments