Skip to content

Commit

Permalink
ci:
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyTubongbanua committed Aug 12, 2023
1 parent 72381df commit 1ef545c
Showing 1 changed file with 20 additions and 15 deletions.
35 changes: 20 additions & 15 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,27 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- name: CMake Configure, Make Install, and CTest
uses: threeal/[email protected]
with:
source-dir: packages/${{ matrix.package }}
generator: Unix Makefiles
# args: -D$(echo "${{ matrix.package }}" | tr '[:lower:]' '[:upper:]')_BUILD_TESTS=ON # this doesn't work :/
args: -DATCLIENT_BUILD_TESTS=ON -DATCHOPS_BUILD_TESTS=ON
build-dir: packages/${{ matrix.package }}/build
run-build: true
build-args: --target install
run-test: false
# run-test: true
# test-args: -V --output-on-failure
# - name: CMake Configure, Make Install, and CTest
# uses: threeal/[email protected]
# with:
# source-dir: packages/${{ matrix.package }}
# generator: Unix Makefiles
# # args: -D$(echo "${{ matrix.package }}" | tr '[:lower:]' '[:upper:]')_BUILD_TESTS=ON # this doesn't work :/
# args: -DATCLIENT_BUILD_TESTS=ON -DATCHOPS_BUILD_TESTS=ON
# build-dir: packages/${{ matrix.package }}/build
# run-build: true
# build-args: --target install
# run-test: false
# # run-test: true
# # test-args: -V --output-on-failure

- name: CMake Configure and Build
working-directory: packages/${{matrix.package}}
run: |
cmake -S . -B build -DATCLIENT_BUILD_TESTS=ON -DATCHOPS_BUILD_TESTS=ON
sudo cmake --build build --target install
- name: CTest
working-directory: packages/${{ matrix.package}}/build/tests
run: |
ctest -V --output-on-failure

0 comments on commit 1ef545c

Please sign in to comment.