diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 2f0dc94..d31a3f7 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -23,10 +23,6 @@ jobs: version: '1.10' lib_subdir: 'x86_64-linux-gnu' shim_ext: '.so' - - os: macos-latest - version: '1.10' - lib_subdir: 'aarch64-apple-darwin' - shim_ext: '.dylib' steps: - uses: actions/checkout@v4 @@ -58,13 +54,6 @@ jobs: run: | gcc -shared -fPIC -o lib/ext/shared/${{ matrix.lib_subdir }}/libModelicaCallbacks.so src/modelica_callbacks.c -ldl - - name: Build ModelicaCallbacks shim (macOS) - if: runner.os == 'macOS' - shell: bash - run: | - mkdir -p lib/ext/shared/${{ matrix.lib_subdir }} - cc -dynamiclib -fPIC -o lib/ext/shared/${{ matrix.lib_subdir }}/libModelicaCallbacks.dylib src/modelica_callbacks.c -ldl - - name: Build ModelicaCallbacks shim (Windows) if: runner.os == 'Windows' shell: bash @@ -88,16 +77,6 @@ jobs: Pkg.test() ' - - name: Run tests (macOS) - if: runner.os == 'macOS' - shell: bash - run: | - export DYLD_LIBRARY_PATH="$(pwd)/lib/ext/shared/${{ matrix.lib_subdir }}:${DYLD_LIBRARY_PATH}" - julia --color=yes --project -e ' - import Pkg - Pkg.test() - ' - - name: Run tests (Windows) if: runner.os == 'Windows' shell: bash diff --git a/src/api.jl b/src/api.jl index 33c69da..df36d73 100644 --- a/src/api.jl +++ b/src/api.jl @@ -1150,3 +1150,22 @@ function ModelicaStreams_closeFile(fileName::String) rc != 0 && error("ModelicaStreams_closeFile failed: ", get_modelica_error()) return nothing end + +function ModelicaError(msg::Cstring) + error("Modelica runtime error: " * unsafe_string(msg)) +end + +function ModelicaError(msg::String) + error("Modelica runtime error: " * msg) +end + +function ModelicaFFT_kiss_fftr(nfft::Cint, timeIn::Ptr{Cdouble}, nTime::Csize_t, + f_re::Ptr{Cdouble}, f_im::Ptr{Cdouble}, nf::Csize_t) + error("ModelicaFFT_kiss_fftr: FFT support not compiled into this build") +end + +function ModelicaRandom_xorshift1024star(state_in::Ptr{Cint}, nState_in::Csize_t, + state_out::Ptr{Cint}, nState_out::Csize_t, + result::Ptr{Cdouble}) + error("ModelicaRandom_xorshift1024star: random support not compiled into this build") +end