Skip to content

Commit

Permalink
Testing if windows misses the add of the .a files
Browse files Browse the repository at this point in the history
  • Loading branch information
makepath-alex committed Jan 9, 2025
1 parent 2de1982 commit ee79bf8
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 7 deletions.
12 changes: 11 additions & 1 deletion recipes/rte-rrtmgp/bld.bat
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,17 @@ cmake -S . -B %BUILD_DIR% ^
cmake --build %BUILD_DIR% --parallel

:: Install the necessery files into the package
cmake --install %BUILD_DIR% --prefix %PREFIX%
cmake --install %BUILD_DIR% --prefix %LIBRARY_PREFIX%

dir %LIBRARY_PREFIX%
dir %LIBRARY_PREFIX%\lib
dir %PREFIX%\Lib\rte-rrtmgp

copy %LIBRARY_PREFIX%\lib\librte.a %LIBRARY_PREFIX%\lib\librte.a
copy %LIBRARY_PREFIX%\lib\librrtmgp.a %LIBRARY_PREFIX%\lib\librrtmgp.a

copy %LIBRARY_PREFIX%\lib\librte.a %PREFIX%\Lib\rte-rrtmgp\librte.a
copy %LIBRARY_PREFIX%\lib\librrtmgp.a %PREFIX%\Lib\rte-rrtmgp\librrtmgp.a

:: Run tests
ctest --output-on-failure --test-dir %BUILD_DIR% -V
20 changes: 14 additions & 6 deletions recipes/rte-rrtmgp/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,22 +48,30 @@ requirements:
test:
commands:
# Check if the files exists
# Unix & Win (we build with mingw, so it generates .a files)
# General
- test -f $PREFIX/include/rrtmgp_kernels.h
- test -f $PREFIX/include/rte_kernels.h
- test -f $PREFIX/include/rte_types.h
- test -f $PREFIX/lib/librrtmgp.a
- test -f $PREFIX/lib/librte.a
# Unix
- test -f $PREFIX/lib/librte.a # [unix]
- test -f $PREFIX/lib/librrtmgp.a # [unix]
# Win (we build with mingw, so it generates .a files)
- if not exist %LIBRARY_PREFIX%/lib/librte.a exit 1 # [win]
- if not exist %LIBRARY_PREFIX%/lib/librrtmgp.a exit 1 # [win]

outputs:
- name: rte_rrtmgp
files:
# Unix & Win
# General
- include/rrtmgp_kernels.h
- include/rte_kernels.h
- include/rte_types.h
- lib/librrtmgp.a
- lib/librte.a
# Unix
- lib/librte.a # [unix]
- lib/librrtmgp.a # [unix]
# Win (we build with mingw, so it generates .a files)
- %LIBRARY_PREFIX%/lib/librte.a # [win]
- %LIBRARY_PREFIX%/lib/librrtmgp.a # [win]

about:
home: https://github.com/earth-system-radiation/rte-rrtmgp
Expand Down

0 comments on commit ee79bf8

Please sign in to comment.