Skip to content

Commit

Permalink
Add miniupnpc CI (conan-io#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
worldemar committed Mar 23, 2020
1 parent 6c275cd commit 9d2b8aa
Showing 1 changed file with 98 additions and 0 deletions.
98 changes: 98 additions & 0 deletions .github/workflows/miniupnpc-2.1.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
name: miniupnpc-2.1 CI

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

env:
CONAN_PASSWORD: ${{ secrets.BintrayApiKey }}
CONAN_REFERENCE: 'miniupnpc/2.1'
IS_PURE_C: true

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

Please sign in to comment.