forked from equinor/layered-file-protocols
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch CI from CirlceCI to Github Actions
With accordance to company policies. Appveyor file is deleted as well as it is even older CI engine and dlisio is build on newer Windows. All cache-related steps are removed as on github actions builds run in reasonable times anyway.
- Loading branch information
Showing
12 changed files
with
289 additions
and
371 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Build with cmake | ||
description: Common steps for library build/test/install using cmake | ||
inputs: | ||
type: | ||
description: CMAKE_BUILD_TYPE (Release, Debug, etc) | ||
required: false | ||
default: Release | ||
scan: | ||
description: Cmake command prefix | ||
required: false | ||
default: '' | ||
cmakeflags: | ||
description: CMAKE_CXX_FLAGS | ||
required: false | ||
default: '' | ||
cxxflags: | ||
description: CXX_FLAGS | ||
required: false | ||
default: '' | ||
runs: | ||
using: composite | ||
steps: | ||
- name: Configure | ||
run: |- | ||
mkdir build | ||
cd build | ||
${{ inputs.scan }} \ | ||
cmake -DBUILD_SHARED_LIBS=ON \ | ||
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \ | ||
-DCMAKE_BUILD_TYPE=${{ inputs.type }} \ | ||
-DCMAKE_CXX_FLAGS=${{ inputs.cxxflags }} \ | ||
${{ inputs.cmakeflags }} \ | ||
.. | ||
shell: bash | ||
|
||
- name: Build and install | ||
run: "${{ inputs.scan }} cmake --build build --target install" | ||
shell: bash | ||
|
||
- name: Test | ||
run: |- | ||
cd build | ||
ctest --verbose | ||
shell: bash |
Oops, something went wrong.