Skip to content
Merged
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
4 changes: 4 additions & 0 deletions .github/run_ci_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ def find_affected_directories(base_ref) -> list:
if file:
print(file)

if any(".github/workflows/ci.yml" in f for f in changed_files):
print("\nCI workflow changed - running all examples")
return []

affected_dirs = set()

for file_path in changed_files:
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
os: [ubuntu-latest, macos-latest, windows-2022]
conan-version: [release, develop]
runs-on: ${{ matrix.os }}
steps:
Expand Down Expand Up @@ -46,6 +46,12 @@ jobs:
with:
cmake-version: "3.23"

- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: "17"

- name: Install Bazel
uses: bazel-contrib/setup-bazel@0.15.0
with:
Expand Down
2 changes: 1 addition & 1 deletion examples/libraries/protobuf/serialization/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
protobuf==4.23.1
protobuf>=5.27.2
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@

with chdir("say"):
replace(os.path.join("src", "say.cpp"), "Hello World", "Bye World")
if platform.system() == "Windows":
run(f"cmake --build --preset {prefix_preset_name}release")
run(f"cmake --build --preset {prefix_preset_name}debug")
if platform.system() == "Windows":
run(f"cmake --build --preset {prefix_preset_name}release --clean-first")
run(f"cmake --build --preset {prefix_preset_name}debug --clean-first")
else:
run(f"cmake --build --preset {prefix_preset_name}release")
run(f"cmake --build --preset {prefix_preset_name}release --clean-first")

with chdir("hello"):
# Clean hello build to ensure it uses the updated say library
Expand Down
Loading