Skip to content

Commit

Permalink
Add libelf CI (conan-io#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
worldemar authored Mar 23, 2020
1 parent 14d161e commit 426f983
Showing 1 changed file with 85 additions and 0 deletions.
85 changes: 85 additions & 0 deletions .github/workflows/libelf.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
name: libelf CI

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

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

jobs:
libelf:
strategy:
matrix:
build: ['linux-gcc4.8', 'linux-gcc7', 'linux-gcc9', 'macos']
libelf_versions: ['0.8.13']
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: '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/[email protected]
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/libelf/all
build-script: ../../../build.py
compiler: ${{ matrix.compiler }}
compiler-versions: ${{ matrix.compiler_version }}
docker-images: ${{ matrix.docker_image }}
env:
CONAN_REFERENCE: 'libelf/${{ matrix.libelf_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 426f983

Please sign in to comment.