Skip to content

Commit

Permalink
CI: fix win test
Browse files Browse the repository at this point in the history
  • Loading branch information
tkittel committed Nov 25, 2024
1 parent ab35c6e commit b4f046f
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/basictest_win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,29 +126,31 @@ jobs:
- name: Test downstream compilation and build flags
shell: cmd
run: |
cl /help
if %errorlevel% neq 0 exit /b %errorlevel%
echo "Set BUILDFLAGS variable"
echo "Set BUILDFLAGS variable via ncrystal-config --show buildflags"
ncrystal-config --show buildflags > buildflags.txt
set /p BUILDFLAGS=<buildflags.txt
echo "Got:" %BUILDFLAGS%
@REM Examples from README:
echo "Copying C and C++ examples"
copy .\src\examples\ncrystal_example_cpp.cc my_cpp_code.cpp
if %errorlevel% neq 0 exit /b %errorlevel%
copy .\src\examples\ncrystal_example_c.c my_c_code.c
if %errorlevel% neq 0 exit /b %errorlevel%
dir
copy .\src\examples\ncrystal_example_c.c my_c_code.c
if %errorlevel% neq 0 exit /b %errorlevel%
ncrystal-config --show buildflags
echo "Compiling C code"
cl my_c_code.c %BUILDFLAGS%
if %errorlevel% neq 0 exit /b %errorlevel%
@REM cl %BUILDFLAGS% my_c_code.c
cl my_c_code.c %BUILDFLAGS%
echo "Compiling C++ code"
cl my_cpp_code.cpp %BUILDFLAGS%
if %errorlevel% neq 0 exit /b %errorlevel%
echo "Custom compilation of downstream C/C++ code succeeded"
echo "Running C app"
my_c_code.exe
echo "Running C++ app"
my_cpp_code.exe

0 comments on commit b4f046f

Please sign in to comment.