CMake tests on MacOS #16
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CMake tests on MacOS | |
| on: | |
| push: | |
| paths: | |
| - 'cmake/**' | |
| pull_request: | |
| paths: | |
| - 'cmake/**' | |
| workflow_dispatch: | |
| jobs: | |
| cmake-tests-ios: | |
| name: CMake toolchain tests for iOS | |
| runs-on: macos-15-intel | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Install JDK | |
| uses: actions/setup-java@v1 | |
| with: | |
| java-version: 17 | |
| - name: Cache Gradle packages | |
| uses: actions/cache@v3 | |
| with: | |
| path: | | |
| ~/.gradle/caches | |
| !*gluecodium* | |
| !*lime-* | |
| key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} | |
| restore-keys: ${{ runner.os }}-gradle | |
| - name: Install ninja | |
| uses: seanmiddleditch/gha-setup-ninja@master | |
| with: | |
| version: 1.11.0 | |
| - name: Build and run functional tests | |
| run: | | |
| export CTEST_PARALLEL_LEVEL=6 | |
| export JAVA_HOME="$JAVA_HOME/Contents/Home" | |
| ./gradlew publishToMavenLocal | |
| cd cmake | |
| GLUECODIUM_BUILD_ENVIRONMENT=ios-x86_64 cmake -P run-cmake-unit-test.cmake |