Skip to content

Commit

Permalink
157 steal the tests from the json library to test xcode builds (#283)
Browse files Browse the repository at this point in the history
* adding xcode builds

* using macos-12 and macos-13

* removing checkout warning
  • Loading branch information
K20shores committed Oct 4, 2023
1 parent 81d1dd9 commit 4d506fd
Showing 1 changed file with 50 additions and 4 deletions.
54 changes: 50 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
# - Dockerfile.mpi
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
submodules: recursive

Expand Down Expand Up @@ -77,7 +77,7 @@ jobs:
CXX: ${{ matrix.compiler.cpp }}
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Install CMake
if: matrix.os == 'windows-latest'
Expand All @@ -98,9 +98,55 @@ jobs:
mkdir build
cd build
cmake ..
cmake --build .
cmake --build . --parallel 10
- name: Run tests
run: |
cd build
ctest -C Debug --rerun-failed --output-on-failure . --verbose
ctest -C Debug --rerun-failed --output-on-failure . --verbose
xcode_1:
runs-on: macos-12
strategy:
matrix:
xcode: ['13.1', '13.2.1', '13.3.1', '13.4.1', '14.0', '14.0.1', '14.1']
env:
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer

steps:
- uses: actions/checkout@v3

- name: Configure and build
run: |
mkdir build
cd build
cmake ..
cmake --build . --parallel 10
- name: Run tests
run: |
cd build
ctest --rerun-failed --output-on-failure . --verbose -j 10
xcode_2:
runs-on: macos-13
strategy:
matrix:
xcode: ['14.1', '14.2', '14.3.1', '15.0']
env:
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer

steps:
- uses: actions/checkout@v3

- name: Configure and build
run: |
mkdir build
cd build
cmake ..
cmake --build . --parallel 10
- name: Run tests
run: |
cd build
ctest --rerun-failed --output-on-failure . --verbose -j 10

0 comments on commit 4d506fd

Please sign in to comment.