Skip to content

Commit

Permalink
Add jasper CI (conan-io#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
worldemar committed Mar 23, 2020
1 parent 4826d4c commit 8fdc33b
Showing 1 changed file with 99 additions and 0 deletions.
99 changes: 99 additions & 0 deletions .github/workflows/jasper.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
name: jasper CI

on:
pull_request:
paths:
- 'recipes/jasper/all/**'
- 'build.py'
- '.github/workflows/jasper.yml'
push:
branches:
- master
paths:
- 'recipes/jasper/all/**'
- 'build.py'
- '.github/workflows/jasper.yml'

env:
CONAN_PASSWORD: ${{ secrets.BintrayApiKey }}
IS_PURE_C: true

jobs:
jasper:
strategy:
matrix:
build: ['linux-gcc4.8', 'linux-gcc7', 'linux-gcc9', 'windows-2019-release', 'windows-2019-debug', 'macos']
jasper_versions: ['2.0.14']
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/jasper/all
build-script: ../../../build.py
compiler: ${{ matrix.compiler }}
compiler-versions: ${{ matrix.compiler_version }}
docker-images: ${{ matrix.docker_image }}
env:
CONAN_REFERENCE: 'jasper/${{ matrix.jasper_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

0 comments on commit 8fdc33b

Please sign in to comment.