From 4826d4c151a9cdee4f43e7f89fbc0636be972e36 Mon Sep 17 00:00:00 2001 From: Vladimir Looze Date: Mon, 23 Mar 2020 12:12:18 +0300 Subject: [PATCH] Add jbig CI (#66) --- .github/workflows/jbig.yml | 99 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 99 insertions(+) create mode 100644 .github/workflows/jbig.yml diff --git a/.github/workflows/jbig.yml b/.github/workflows/jbig.yml new file mode 100644 index 0000000000000..96650ff3c164f --- /dev/null +++ b/.github/workflows/jbig.yml @@ -0,0 +1,99 @@ +name: jbig CI + +on: + pull_request: + paths: + - 'recipes/jbig/all/**' + - 'build.py' + - '.github/workflows/jbig.yml' + push: + branches: + - master + paths: + - 'recipes/jbig/all/**' + - 'build.py' + - '.github/workflows/jbig.yml' + +env: + CONAN_PASSWORD: ${{ secrets.BintrayApiKey }} + IS_PURE_C: true + +jobs: + jbig: + strategy: + matrix: + build: ['linux-gcc4.8', 'linux-gcc7', 'linux-gcc9', 'windows-2019-release', 'windows-2019-debug', 'macos'] + jbig_versions: ['20160605'] + include: + - build: 'linux-gcc4.8' + os: 'ubuntu-latest' + compiler: 'gcc' + compiler_version: '4.8' + docker_image: 'conanio/gcc48' + build_types: 'Release,Debug' + archs: 'x86,x86_64' + - build: 'linux-gcc7' + os: 'ubuntu-latest' + compiler: 'gcc' + compiler_version: '7' + docker_image: 'conanio/gcc7' + build_types: 'Release,Debug' + archs: 'x86,x86_64' + - build: 'linux-gcc9' + os: 'ubuntu-latest' + compiler: 'gcc' + compiler_version: '9' + docker_image: 'conanio/gcc9' + build_types: 'Release,Debug' + archs: 'x86,x86_64' + - build: 'windows-2019-release' + os: 'windows-2019' + build_types: 'Release' + compiler: 'vs' + compiler_version: '16' + vs_runtimes: 'MD,MT' + archs: 'x86_64' + - build: 'windows-2019-debug' + os: 'windows-2019' + build_types: 'Debug' + compiler: 'vs' + compiler_version: '16' + vs_runtimes: 'MDd,MTd' + archs: 'x86_64' + - build: 'macos' + os: 'macos-latest' + build_types: 'Release,Debug' + archs: 'x86_64' + compiler: 'apple_clang' + compiler_version: '11.0' + xcode_version: '11.3.1' + runs-on: ${{ matrix.os }} + steps: + - name: Configure git + run: git config --global core.autocrlf false + shell: bash + - name: Checkout + uses: actions/checkout@v2 + with: + path: sources + - name: Setup Python + uses: actions/setup-python@v1 + with: + python-version: '3.x' + - name: Build and Optionally Upload + uses: trassir/run-cpt@v0.2.2-trassir + with: + install: custom + # TODO: replace when https://github.com/conan-io/conan-package-tools/issues/479 will be fixed upstream + custom-package: git+https://github.com/trassir/conan-package-tools@fix-479-trassir + work-dir: sources/recipes/jbig/all + build-script: ../../../build.py + compiler: ${{ matrix.compiler }} + compiler-versions: ${{ matrix.compiler_version }} + docker-images: ${{ matrix.docker_image }} + env: + CONAN_REFERENCE: 'jbig/${{ matrix.jbig_versions }}' + CONAN_VISUAL_RUNTIMES: ${{ matrix.vs_runtimes }} + CONAN_ARCHS: ${{ matrix.archs }} + CONAN_BUILD_TYPES: ${{ matrix.build_types }} + DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode_version }}.app/Contents/Developer