Skip to content

Commit

Permalink
Switch CI from CirlceCI to Github Actions
Browse files Browse the repository at this point in the history
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
achaikou committed Jan 26, 2024
1 parent 1825120 commit b030284
Show file tree
Hide file tree
Showing 12 changed files with 289 additions and 371 deletions.
334 changes: 0 additions & 334 deletions .circleci/config.yml

This file was deleted.

4 changes: 0 additions & 4 deletions .circleci/images/setup/Dockerfile

This file was deleted.

44 changes: 44 additions & 0 deletions .github/actions/cmake_build/action.yml
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
Loading

0 comments on commit b030284

Please sign in to comment.