Sitelet https://github.com/ndsev/zserio-tutorial-cpp/pull/3/files
Skip to content
Open
Show file tree
Hide file tree
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
14 changes: 14 additions & 0 deletions .github/workflows/build_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ jobs:
rm -rd *
cmake .. -DCMAKE_BUILD_TYPE=Release -DREGENERATE_CPP_SOURCES=ON
cmake --build .
cd ..
git add --intent-to-add --all -- src
git diff --exit-code -- src

- name: Test Zserio C++ tutorial (sources regeneration)
run: |
Expand Down Expand Up @@ -97,6 +100,9 @@ jobs:
rm -rd *
cmake ../pmr -DCMAKE_BUILD_TYPE=Release -DREGENERATE_CPP_SOURCES=ON
cmake --build .
cd ..
git add --intent-to-add --all -- pmr/src
git diff --exit-code -- pmr/src

- name: Test Zserio C++ custom memory management tutorial (sources regeneration)
run: |
Expand All @@ -110,3 +116,11 @@ jobs:
with:
name: zserio-tutorial-cpp-${{matrix.os}}
path: build/ZserioTutorialCpp

keepalive:
if: github.event_name == 'schedule'
runs-on: ubuntu-latest
permissions:
actions: write
steps:
- uses: liskin/gh-workflow-keepalive@v1
14 changes: 14 additions & 0 deletions .github/workflows/build_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ jobs:
rm -rd *
cmake .. -DREGENERATE_CPP_SOURCES=ON
cmake --build . --config Release
cd ..
git add --intent-to-add --all -- src
git diff --exit-code -- src
shell: bash

- name: Test Zserio C++ tutorial (sources regeneration)
Expand Down Expand Up @@ -105,6 +108,9 @@ jobs:
rm -rd *
cmake ../pmr -DREGENERATE_CPP_SOURCES=ON
cmake --build . --config Release
cd ..
git add --intent-to-add --all -- pmr/src
git diff --exit-code -- pmr/src
shell: bash

- name: Test Zserio C++ custom memory management tutorial (sources regeneration)
Expand All @@ -120,3 +126,11 @@ jobs:
with:
name: zserio-tutorial-cpp-${{matrix.os}}
path: build/Release/ZserioTutorialCpp.exe

keepalive:
if: github.event_name == 'schedule'
runs-on: ubuntu-latest
permissions:
actions: write
steps:
- uses: liskin/gh-workflow-keepalive@v1
14 changes: 0 additions & 14 deletions .github/workflows/keep_alive.yml

This file was deleted.

2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ if (REGENERATE_CPP_SOURCES)

MESSAGE(STATUS "Compiling zserio tutorial schema")
execute_process(COMMAND ${Java_JAVA_EXECUTABLE} -jar "${ZSERIO_JAR}"
-cpp ${TUTORIAL_ZSERIO_GEN_DIR} -src ${CMAKE_CURRENT_SOURCE_DIR} tutorial.zs
-cpp ${TUTORIAL_ZSERIO_GEN_DIR} -src ${CMAKE_CURRENT_SOURCE_DIR} tutorial.zs -ignoreTimestamps
OUTPUT_VARIABLE ZSERIO_OUTPUT
RESULT_VARIABLE ZSERIO_RESULT_CODE)
if (ZSERIO_RESULT_CODE)
Expand Down
2 changes: 1 addition & 1 deletion pmr/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ if (REGENERATE_CPP_SOURCES)

MESSAGE(STATUS "Compiling zserio tutorial schema")
execute_process(COMMAND ${Java_JAVA_EXECUTABLE} -jar "${ZSERIO_JAR}"
-cpp ${TUTORIAL_ZSERIO_GEN_DIR} -src ${CMAKE_CURRENT_SOURCE_DIR}/.. tutorial.zs
-cpp ${TUTORIAL_ZSERIO_GEN_DIR} -src ${CMAKE_CURRENT_SOURCE_DIR}/.. tutorial.zs -ignoreTimestamps
-setCppAllocator polymorphic
OUTPUT_VARIABLE ZSERIO_OUTPUT
RESULT_VARIABLE ZSERIO_RESULT_CODE)
Expand Down
Loading