Skip to content

Commit 19ef2f9

Browse files
author
Kasper Peeters
committed
Also test on Windows ARM64. Fix ldd typo.
1 parent 034368a commit 19ef2f9

File tree

4 files changed

+18
-7
lines changed

4 files changed

+18
-7
lines changed

.github/workflows/windows.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,15 +132,23 @@ jobs:
132132
needs: msys2-ucrt64
133133
strategy:
134134
matrix:
135-
os: [windows-2019, windows-2022]
135+
include:
136+
- os: windows-2022
137+
name: x86_64
138+
display-name: "Windows 11 x86_64"
139+
- os: windows-2022
140+
name: x86_64
141+
display-name: "Windows 10 x86_64"
142+
- os: windows-11-arm
143+
name: arm64
144+
display-name: "Windows 11 arm64"
136145
runs-on: ${{ matrix.os }}
137146

138147
steps:
139148
- name: Download installer
140149
uses: actions/download-artifact@v4
141150
with:
142-
name: cadabra2-windows-x86_64.msi
143-
# name: cadabra2-win64-${{ matrix.os }}.msi
151+
name: cadabra2-windows-${{ matrix.os }}.msi
144152

145153
- name: Install silently
146154
shell: pwsh

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ if(WIN32)
529529
add_custom_command(
530530
OUTPUT dummy1
531531
COMMAND cp core/cadabra2.pyd core/cadabra2.dll
532-
COMMAND ${CMAKE_COMMAND} -E env bash -c "ldd /${MSYS_ENV}/lib/gdk-pixbuf-2.0/2.10.0/loaders/pixbufloader-svg.dll core/cadabra2.dll ${LEXECUTABLES} | sed -e '/not found/d' -e '/Windows/d' -e '/System32/d' -e '/SysWOW64/d' | grep '=>' | sed -e 's/^[^=]*=>[ ]*\\([^ ]*\\).*/\\1/' | sort | uniq > ${CMAKE_BINARY_DIR}/ldd_dependencies.txt"
532+
COMMAND ${CMAKE_COMMAND} -E env bash -c "ldd /${MSYS_ENV}/lib/gdk-pixbuf-2.0/2.10.0/loaders/pixbufloader_svg.dll core/cadabra2.dll ${LEXECUTABLES} | sed -e '/not found/d' -e '/Windows/d' -e '/System32/d' -e '/SysWOW64/d' | grep '=>' | sed -e 's/^[^=]*=>[ ]*\\([^ ]*\\).*/\\1/' | sort | uniq > ${CMAKE_BINARY_DIR}/ldd_dependencies.txt"
533533
COMMAND touch dummy1
534534
VERBATIM
535535
DEPENDS core/cadabra2.pyd ${EXECUTABLES}

core/cadabra2-cli.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,8 @@ void Shell::handle_error()
486486

487487
void Shell::handle_error(py::error_already_set& err)
488488
{
489-
if (err.matches(PyExc_SystemExit)) {
489+
if(err.matches(PyExc_SystemExit)) {
490+
std::cerr << "SystemExit" << std::endl;
490491
auto value = err.value();
491492
if (PyExceptionInstance_Check(value.ptr())) {
492493
_Py_Identifier PyId_code;

web2/cadabra2/source/changelog.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,10 @@ <h3>github devel branch (2.5.11)</h3>
5353
<li>New, more modern Windows installer, which also adds a desktop icon.</li>
5454
<li>Removed terminal window on Windows.</li>
5555
<li>Fix export of notebooks to HTML.</li>
56-
<li>Packages are now provided for <tt>arm64</tt> in addition to <tt>x86_64</tt>
57-
(e.g. to run Cadabra inside a Linux VM on your Apple Silicon MacBook).</li>
56+
<li>Packages are now provided for <tt>arm64</tt> in addition
57+
to <tt>x86_64</tt> for various Linux distributions (e.g. to run
58+
Cadabra inside a Linux VM on your Apple Silicon MacBook) and for
59+
Windows.</li>
5860
<li>The command line client <tt>cadabra2-cli</tt> is now the default (with a symlink
5961
<tt>cadabra2</tt> for backward compatibility) to streamline code and prepare
6062
for future improvements.</li>

0 commit comments

Comments
 (0)