Issue/back2basic #210
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: build-all-configs | |
| on: [push, pull_request] | |
| jobs: | |
| build-on-osx-for-objectiveC: | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: asdf-vm/actions/install@v4 | |
| - name: Report cmake version | |
| run: cmake --version | |
| - name: Configure cmake | |
| run: cmake -S . -B build -DDJINNI_WITH_OBJC=ON -DCMAKE_OSX_SYSROOT=$(xcodebuild -version -sdk macosx Path) -G Xcode | |
| - name: Build release | |
| run: cmake --build build --parallel $(sysctl -n hw.ncpu) --config Release | |
| - name: Run tests | |
| working-directory: build/test-suite | |
| run: ctest -C Release -V | |
| - name: Install files | |
| run: cmake --build build --parallel $(sysctl -n hw.ncpu) --config Release --target install -- DESTDIR=check_install_root | |
| - name: List installed files | |
| working-directory: build/check_install_root | |
| run: du -a | tail -r | awk -F ' ' '{print $2}' | |
| - name: Test if expected files have been installed | |
| working-directory: build/check_install_root | |
| run: diff -u ../../test/objc_list.txt <(du -a | tail -r | awk -F ' ' '{print $2}') | |
| build-on-ubuntu-for-jni: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: asdf-vm/actions/install@v4 | |
| - name: Report cmake version | |
| run: cmake --version | |
| - name: Configure cmake | |
| run: cmake -S . -B build -DDJINNI_WITH_JNI=ON | |
| - name: Build release | |
| run: cmake --build build --parallel $(nproc) --config Release | |
| - name: Run tests | |
| working-directory: build/test-suite | |
| run: ctest -C Release -V | |
| - name: Install files | |
| run: cmake --build build --parallel $(nproc) --config Release --target install -- DESTDIR=check_install_root | |
| - name: List installed files | |
| working-directory: build/check_install_root | |
| run: du -a | tac | awk -F ' ' '{print $2}' | sort | |
| - name: Test if expected files have been installed | |
| working-directory: build/check_install_root | |
| run: diff -u ../../test/jni_list.txt <(du -a | tac | awk -F ' ' '{print $2}' | sort) | |
| build-on-ubuntu-for-jni-with-thread-attach: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: asdf-vm/actions/install@v4 | |
| - name: Report cmake version | |
| run: cmake --version | |
| - name: Configure cmake | |
| run: cmake -S . -B build -DDJINNI_WITH_JNI=ON -DJNI_CPP_THREAD_ATTACH=ON -DCMAKE_BUILD_TYPE=Release | |
| - name: Build release | |
| run: cmake --build build --parallel $(nproc) | |
| - name: Run tests | |
| working-directory: build/test-suite | |
| run: ctest -C Release -V | |
| build-on-ubuntu-for-android_arm32-with-thread-attach: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: asdf-vm/actions/install@v4 | |
| - uses: ashutoshvarma/setup-ninja@master | |
| with: | |
| version: 1.10.2 | |
| - name: Report cmake version | |
| run: cmake --version | |
| - name: Configure cmake | |
| run: cmake -S . -B build -DDJINNI_WITH_JNI=ON -DJNI_CPP_THREAD_ATTACH=ON -DCMAKE_BUILD_TYPE=Release -DJINNI_BUILD_TESTING=OFF -DCMAKE_TOOLCHAIN_FILE=${ANDROID_SDK_ROOT}/ndk/$(ls ${ANDROID_SDK_ROOT}/ndk -C1 | sort -r | head -1)/build/cmake/android.toolchain.cmake -DANDROID_PLATFORM=android-26 -DANDROID_NATIVE_API_LEVEL=26 -DANDROID_ABI=armeabi-v7a -G Ninja | |
| - name: Build release | |
| run: cmake --build build --parallel $(nproc) |