Skip to content

Run windows tests #36

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 28 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,19 +62,13 @@ jobs:
cd build
make -j ${{ steps.cpu-cores.outputs.count }} test_xtensor_julia

- name: Test xtensor-julia
- name: test
shell: bash -l {0}
run: |
cd build
cd test
./test_xtensor_julia

- name: install xtensor-julia
shell: bash -l {0}
run: |
cd build
make install

win:

runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -136,3 +130,30 @@ jobs:
call C:\Users\runneradmin\micromamba\condabin\micromamba.bat activate xtensor-julia
cd build
cmake --build .

- name: test
shell: cmd
run: |
call C:\Users\runneradmin\micromamba\condabin\micromamba.bat activate xtensor-julia
cd build
cd test
julia -E "using CxxWrap; joinpath(CxxWrap.prefix_path(), \"bin\")" > temp.txt
set /p JlCxx_BIN=<temp.txt
set JlCxx_BIN=%JlCxx_BIN:"=%
set PATH=%PATH%;%JlCxx_BIN%
echo "======================"
echo "PATH:" %PATH%
echo "======================"
echo "Ldd"
ldd .\test_xtensor_julia
echo "======================"
echo "Dependency walker"
mamba install curl 7zip
curl --output depends.zip --url https://www.dependencywalker.com/depends22_x64.zip
7z e depends.zip
Move /y depends.exe %CONDA_PREFIX%/Library/bin/
Move /y depends.dll %CONDA_PREFIX%/Library/bin/
depends /c .\xtensor-julia
echo "======================"
echo "Run tests"
.\test_xtensor_julia