Skip to content

Commit

Permalink
ci: just remove macos and windows (I Give up)
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyTubongbanua committed Aug 14, 2023
1 parent b6049e9 commit 1b7697a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 80 deletions.
44 changes: 0 additions & 44 deletions .github/workflows/test_atchops_windows.yaml

This file was deleted.

40 changes: 4 additions & 36 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,57 +7,25 @@ on:

jobs:
unit-tests:
runs-on: ${{ matrix.os }}
runs-on: "ubuntu-latest"
continue-on-error: true # if one matrix cell fails, the other ones keep going :)
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
package: [atchops, atclient]

exclude:
- os: windows-latest # this is failing for some reason
package: atchops
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
working-directory: packages/${{matrix.package}}
run: |
cmake -S . -B build -DATCLIENT_BUILD_TESTS=ON -DATCHOPS_BUILD_TESTS=ON
- name: Build and Install (Linux/MacOS)
if: ${{ matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest' }}
- name: Build and Install
working-directory: packages/${{matrix.package}}
run: |
sudo cmake --build build --target install
- name: CTest (Linux/MacOS)
if: ${{ matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest' }}
working-directory: packages/${{ matrix.package}}/build/tests
run: |
ctest -V --output-on-failure --timeout 2
- name: Build and Install (Windows)
if: ${{ matrix.os == 'windows-latest' }}
working-directory: packages/${{matrix.package}}
run: |
cmake --build build --config Debug
- name: CTest (Windows)
if: ${{ matrix.os == 'windows-latest' }}
- name: CTest
working-directory: packages/${{ matrix.package}}/build/tests
run: |
ctest -V --output-on-failure -C Debug --timeout 10
ctest -V --output-on-failure --timeout 2

0 comments on commit 1b7697a

Please sign in to comment.