Skip to content

Merge pull request #7 from markvilar/markvilar-patch-1 #26

Merge pull request #7 from markvilar/markvilar-patch-1

Merge pull request #7 from markvilar/markvilar-patch-1 #26

Workflow file for this run

name: build-linux
on:
push:
pull_request:
branches: [main]
defaults:
run:
shell: bash
env:
source_dir: "${{github.workspace}}"
build_dir: "${{github.workspace}}/build"
profile_dir: "${{github.workspace}}/conan/profiles"
jobs:
build:
name: "build-${{matrix.os}}-${{matrix.build_type}}-${{matrix.compiler.c}}"
runs-on: "${{matrix.os}}"
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-20.04
compiler: { c: gcc, cpp: g++ }
generator: Ninja
build_type: Release
platform: x64
profile: linux_ninja_gcc
- os: ubuntu-20.04
compiler: { c: clang, cpp: clang++ }
generator: Ninja
build_type: Release
platform: x64
profile: linux_ninja_clang
- os: ubuntu-20.04
compiler: { c: gcc, cpp: g++ }
generator: Unix Makefiles
build_type: Release
platform: x64
profile: linux_makefiles_gcc
- os: ubuntu-20.04
compiler: { c: clang, cpp: clang++ }
generator: Unix Makefiles
build_type: Release
platform: x64
profile: linux_makefiles_clang
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Environment setup
uses: ./.github/actions/setup-linux
- name: Conan profile
run: conan profile detect
- name: Conan install
run: |
conan install ${{env.source_dir}} \
--profile ${{env.profile_dir}}/${{matrix.profile}} \
--build missing
- name: Conan build
run: |
conan build ${{env.source_dir}} \
--profile ${{env.profile_dir}}/${{matrix.profile}} \
--build missing
- name: Conan create
run: |
conan create ${{env.source_dir}} \
--profile ${{env.profile_dir}}/${{matrix.profile}} \
--build missing