@@ -61,11 +61,11 @@ jobs:
6161 directory : ' Example'
6262 path : ' libmathcat_py.pyd'
6363 # build the test after zipping up "Rules" because the test will unzip the files needed for the test
64- #
65- # - name: test build
66- # run: |
67- # cd Example
68- # python test.py
64+
65+ - name : test build
66+ run : |
67+ cd Example
68+ python test.py
6969 - name : Upload 64 bit pyd file
7070 uses : actions/upload-artifact@v4
7171 with :
@@ -105,7 +105,51 @@ jobs:
105105 name : MathCAT_addons
106106 path : addon/globalPlugins
107107 retention-days : 1
108-
108+
109+ linux-64 :
110+ name : Build 64 bit version
111+ runs-on : ubuntu-latest
112+ steps :
113+ - name : Checkout code
114+ uses : actions/checkout@v3
115+ - name : Set up Python
116+ uses : actions/setup-python@v5
117+ with :
118+ python-version : 3.11
119+ architecture : ' x64'
120+ - name : Build Rust Library
121+ run : |
122+ cargo build --target x86_64-unknown-linux-gnu --release
123+ - name : Setup Example dir
124+ run : |
125+ cp target/x86_64-unknown-linux-gnu/release/libmathcat_py.dll Example/libmathcat_py.pyd
126+ cp -r addon/globalPlugins/MathCAT/Rules Example
127+ - name : test build
128+ run : |
129+ cd Example
130+ python test.py
131+ - name : create zip file for pyd file -- this allows the name to indicate arch, python version etc but unzipped it is correctly named
132+ uses : thedoctor0/zip-release@0.7.5
133+ with :
134+ type : ' zip'
135+ filename : ' ../libmathcat_py-64-3.11-linux.zip'
136+ directory : ' Example'
137+ path : ' libmathcat_py.pyd'
138+ # build the test after zipping up "Rules" because the test will unzip the files needed for the test
139+ #
140+ # - name: test build
141+ # run: |
142+ # cd Example
143+ # python test.py
144+ - name : Upload 64 bit pyd file
145+ uses : actions/upload-artifact@v4
146+ with :
147+ name : libmathcat_py-64-3.11-linux.zip
148+ path : libmathcat_py-64-3.11-linux.zip
149+ compression-level : 0
150+ retention-days : 1
151+
152+
109153 pre-release :
110154 name : Pre Release
111155 continue-on-error : false
0 commit comments