Skip to content

Avoid actually testing under Xcode #4

Avoid actually testing under Xcode

Avoid actually testing under Xcode #4

Workflow file for this run

---
name: Build and test
"on":
push:
branches: ["**"]
jobs:
build-and-test:
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
configuration: [Debug, Release]
env:
BUILD_AND_TEST: cmake -DCMAKE_BUILD_TYPE=${{ matrix.configuration }} -DENABLE_TESTING=1 -GNinja -S . -B .cmake-build && cmake --build .cmake-build && ctest -V --test-dir .cmake-build
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
show-progress: false
- name: Devcontainer CTest
if: ${{ matrix.os == 'ubuntu-latest' }}
uses: devcontainers/[email protected]
with:
runCmd: ${{ env.BUILD_AND_TEST }}
- name: Xcode (build only—"error: Scheme DummyTestee is not currently configured for the test action.")

Check failure on line 31 in .github/workflows/build-and-test.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build-and-test.yml

Invalid workflow file

You have an error in your yaml syntax on line 31
if: ${{ matrix.os == 'macos-latest' }}
run: |
cmake -DENABLE_TESTING=1 -GXcode -S . -B .xcode-build
cd .xcode-build
xcrun xcodebuild -configuration ${{ matrix.configuration }} -scheme DummyTestee -destination 'platform=macOS' build-for-testing
- name: Setup Swift
uses: SwiftyLab/setup-swift@latest
with:
swift-version: 5.9
- name: Native CTest
run: ${{ env.BUILD_AND_TEST }}