iio: update upstream #247
This file contains 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: CI | |
on: [push] | |
env: | |
BUILD_TYPE: Debug | |
jobs: | |
build-windows: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
include: | |
- os: windows-latest | |
triplet: x64-windows | |
vcpkgCommitId: '6d9ed568117dd958c543b3ab8d3ed692965cac34' | |
vcpkgPackages: 'gdal sdl2 libjpeg-turbo libpng tiff' | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Restore artifacts, or run vcpkg, build and cache artifacts | |
uses: lukka/run-vcpkg@main | |
id: runvcpkg | |
with: | |
vcpkgArguments: '${{ matrix.vcpkgPackages }}' | |
vcpkgTriplet: '${{ matrix.triplet }}' | |
vcpkgDirectory: '${{ runner.workspace }}/build/vcpkg' | |
vcpkgGitCommitId: '${{ matrix.vcpkgCommitId }}' | |
- name: Prints outputs of run-vcpkg task | |
run: echo "'${{ steps.runvcpkg.outputs.RUNVCPKG_VCPKG_ROOT_OUT }}' '${{ steps.runvcpkg.outputs.RUNVCPKG_VCPKG_TRIPLET_OUT }}' " | |
- name: Run CMake+Ninja with triplet (cmd) | |
uses: lukka/run-cmake@main | |
id: runcmake_cmd | |
with: | |
cmakeGenerator: 'Ninja' | |
cmakeListsOrSettingsJson: 'CMakeListsTxtAdvanced' | |
cmakeAppendedArgs: '-DBUILD_TESTING=ON -DUSE_GDAL=ON -DUSE_IIO=OFF -DUSE_PLAMBDA=OFF -DCMAKE_SYSTEM_VERSION="10.0.18362.0"' | |
useVcpkgToolchainFile: true | |
vcpkgTriplet: ${{ steps.runvcpkg.outputs.RUNVCPKG_VCPKG_TRIPLET_OUT }} | |
buildDirectory: '${{ runner.workspace }}/build/ninja/' | |
build-macos: | |
runs-on: macos-latest | |
strategy: | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install dependencies | |
shell: bash | |
run: brew install sdl2 rust #dylibbundler | |
- name: Create Build Environment | |
run: cmake -E make_directory ${{github.workspace}}/build | |
- name: Configure CMake | |
shell: bash | |
working-directory: ${{github.workspace}}/build | |
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DBUILD_TESTING=ON | |
- name: Build | |
working-directory: ${{github.workspace}}/build | |
shell: bash | |
run: cmake --build . --config $BUILD_TYPE -v | |
- name: Test | |
working-directory: ${{github.workspace}}/build | |
shell: bash | |
run: ctest --output-on-failure | |