Setup build2
ActionsTags
(2)This action provides setup routines to use build2 with GitHub Workflows. Currently Linux, MacOS and Windows based runners are supported.
After using setup-build2-github-action all build2 related command line tools - like b or bdep - are available within your runner.
steps:
- uses: actions/checkout@v2
- uses: build2/setup-build2-github-action@v2
- run: bdep init -C @gcc cc config.cxx=g++
- run: b
- run: b testThe action also provides parameters to customize the build2 toolset for your runner:
build2-version: Version ofbuild2which should be installed. Default islatest. Can also bestagedor a specific version like0.14.0.build2-windows-compiler: Used in Windows runners only. Defines the compiler which is used to buildbuild2. Default ismsvc. Can also bemingworclang.
- uses: build2/setup-build2-github-action@v2
with:
build2-version: staged
build2-windows-compiler: mingwSetup build2 is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.