Skip to content

Commit 45852ce

Browse files
committed
attempt with artifacts so there is linux/windows communitication
1 parent b31429d commit 45852ce

File tree

1 file changed

+17
-7
lines changed

1 file changed

+17
-7
lines changed

.github/workflows/automaticRelease.yaml

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
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:

0 commit comments

Comments
 (0)