diff --git a/.github/workflows/c++.yml b/.github/workflows/c++.yml deleted file mode 100644 index 7bbc93a743..0000000000 --- a/.github/workflows/c++.yml +++ /dev/null @@ -1,47 +0,0 @@ -name: C++ Example Tests - -on: - pull_request: - paths: - - "examples/cpp/**" - -jobs: - tests: - runs-on: macOS-12 - - steps: - - uses: actions/checkout@v3 - - uses: dorny/paths-filter@v2 - id: filter - with: - filters: | - asymmetric: - - 'examples/cpp/asymmetric/**' - local: - - 'examples/cpp/local/**' - sync: - - 'examples/cpp/sync/**' - - name: Realm C++ Asymmetric Tests - if: steps.filter.outputs.asymmetric == 'true' - run: | - cd examples/cpp/asymmetric - mkdir build && cd build - cmake .. - cmake --build . - ./examples-asymmetric - - name: Realm C++ Local Tests - if: steps.filter.outputs.local == 'true' - run: | - cd examples/cpp/local - mkdir build && cd build - cmake .. - cmake --build . - ./examples-local - - name: Realm C++ Sync Tests - if: steps.filter.outputs.sync == 'true' - run: | - cd examples/cpp/sync - mkdir build && cd build - cmake .. - cmake --build . - ./examples-sync diff --git a/.github/workflows/c++_asymmetric.yml b/.github/workflows/c++_asymmetric.yml new file mode 100644 index 0000000000..912230fae1 --- /dev/null +++ b/.github/workflows/c++_asymmetric.yml @@ -0,0 +1,23 @@ +name: C++ Asymmetric Sync Example Tests + +on: + pull_request: + paths: + - "examples/cpp/asymmetric/**" + +jobs: + tests: + runs-on: macOS-12 + + steps: + - uses: actions/checkout@v3 + - name: Build + run: | + cd examples/cpp/asymmetric + mkdir build && cd build + cmake .. + cmake --build . + - name: Test + run: | + cd examples/cpp/asymmetric/build + ./examples-asymmetric diff --git a/.github/workflows/c++_local.yml b/.github/workflows/c++_local.yml new file mode 100644 index 0000000000..cf8eca5d5d --- /dev/null +++ b/.github/workflows/c++_local.yml @@ -0,0 +1,23 @@ +name: C++ Local Example Tests + +on: + pull_request: + paths: + - "examples/cpp/local/**" + +jobs: + tests: + runs-on: macOS-12 + + steps: + - uses: actions/checkout@v3 + - name: Build + run: | + cd examples/cpp/local + mkdir build && cd build + cmake .. + cmake --build . + - name: Test + run: | + cd examples/cpp/local/build + ./examples-local diff --git a/.github/workflows/c++_sync.yml b/.github/workflows/c++_sync.yml new file mode 100644 index 0000000000..5520438549 --- /dev/null +++ b/.github/workflows/c++_sync.yml @@ -0,0 +1,23 @@ +name: C++ Sync Example Tests + +on: + pull_request: + paths: + - "examples/cpp/sync/**" + +jobs: + tests: + runs-on: macOS-12 + + steps: + - uses: actions/checkout@v3 + - name: Build + run: | + cd examples/cpp/sync + mkdir build && cd build + cmake .. + cmake --build . + - name: Test + run: | + cd examples/cpp/sync/build + ./examples-sync