Skip to content

Commit

Permalink
ci: we back
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyTubongbanua committed Aug 12, 2023
1 parent 7087f41 commit 72381df
Showing 1 changed file with 18 additions and 28 deletions.
46 changes: 18 additions & 28 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,36 +10,26 @@ jobs:
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
package: [atchops, atclient]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3

- name: atchops - CMake Configure
working-directory: packages/atchops
run: |
cmake -S . -B build -DATCHOPS_BUILD_TESTS=ON -DCMAKE_INSTALL_PREFIX=./install
- name: atchops - Build with Unix Makefiles
working-directory: packages/atchops
run: |
cmake --build build --target install
- name: atchops - Run CTest
working-directory: packages/atchops/build/tets
- 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: CTest
working-directory: packages/${{ matrix.package}}/build/tests
run: |
ctest -V
ctest -V --output-on-failure
- name: atclient - CMake Configure
working-directory: packages/atclient
run: |
cmake -S . -B build -DATCLIENTS_BUILD_TESTS=ON -DCMAKE_INSTALL_PREFIX=./install
- name: atclient - Build with Unix Makefiles
working-directory: packages/atclient
run: |
cmake --build build --target install
- name: atclient - Run CTest
working-directory: packages/atclient/build/tets
run: |
ctest -V

0 comments on commit 72381df

Please sign in to comment.