Update binary-build.yml fixing yaml #44
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: binary build | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
# The CMake configure and build commands are platform agnostic and should work equally | |
# well on Windows or Mac. You can convert this to a matrix build if you need | |
# cross-platform coverage. | |
# See: https://docs.github.com/en/actions/configuring-and-managing-workflows/configuring-a-workflow#configuring-a-build-matrix | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-20.04] | |
build_type: ['Release'] | |
staticcompile: ['ON', 'OFF'] | |
steps: | |
- uses: actions/checkout@v2 | |
# install dependencies | |
- name: Install boost | |
uses: MarkusJx/[email protected] | |
id: install-boost | |
with: | |
# REQUIRED: Specify the required boost version | |
# A list of supported versions can be found here: | |
# https://github.com/MarkusJx/prebuilt-boost/blob/main/versions-manifest.json | |
boost_version: 1.73.0 | |
# OPTIONAL: Specify a custon install location | |
#boost_install_dir: C:\some_directory | |
# OPTIONAL: Specify a platform version | |
#platform_version: 2019 | |
# OPTIONAL: Specify a toolset | |
#toolset: msvc | |
- name: Setup Python | |
uses: actions/[email protected] | |
#with: | |
# Version range or exact version of Python or PyPy to use, using SemVer's version range syntax. Reads from .python-version if unset. | |
#python-version: # optional | |
# File containing the Python version to use. Example: .python-version | |
#python-version-file: # optional | |
# Used to specify a package manager for caching in the default directory. Supported values: pip, pipenv, poetry. | |
#cache: # optional | |
# The target architecture (x86, x64) of the Python or PyPy interpreter. | |
#architecture: # optional | |
# Set this option if you want the action to check for the latest available version that satisfies the version spec. | |
#check-latest: # optional | |
# The token used to authenticate when fetching Python distributions from https://github.com/actions/python-versions. When running this action on github.com, the default value is sufficient. When running on GHES, you can pass a personal access token for github.com if you are experiencing rate limiting. | |
#token: # optional, default is ${{ github.server_url == 'https://github.com' && github.token || '' }} | |
# Used to specify the path to dependency files. Supports wildcards or a list of file names for caching multiple dependencies. | |
#cache-dependency-path: # optional | |
# Set this option if you want the action to update environment variables. | |
#update-environment: # optional, default is true | |
# When 'true', a version range passed to 'python-version' input will match prerelease versions if no GA versions are found. Only 'x.y' version range is supported for CPython. | |
#allow-prereleases: # optional | |
- name: Configure CMake | |
# Use a bash shell so we can use the same syntax for environment variable | |
# access regardless of the host operating system | |
#working-directory: ${{runner.workspace}}/build | |
# Note the current convention is to use the -S and -B options here to specify source | |
# and build directories, but this is only available with CMake 3.13 and higher. | |
# The CMake binaries on the Github Actions machines are (as of this writing) 3.12 | |
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DENABLE_TESTING=ON -DSTATICCOMPILE=${{ matrix.staticcompile }} | |
- name: Build | |
#working-directory: ${{runner.workspace}}/build | |
# Execute the build. You can specify a specific target with "--target <NAME>" | |
run: cmake --build . --config ${{ matrix.build_type }} | |
- name: Test | |
#working-directory: ${{runner.workspace}}/build | |
# Execute tests defined by the CMake configuration. | |
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail | |
run: ctest -C ${{ matrix.build_type }} | |
#- name: "Install CMS (unix)" | |
# if: ${{ !contains(matrix.os, 'windows') }} | |
# run: sudo cmake --install build --config ${{ matrix.build_type }} | |
#- name: "Install Spix (win)" | |
# if: ${{ contains(matrix.os, 'windows') }} | |
# run: cmake --install build --config ${{ matrix.build_type }} |