This repository has been archived by the owner on Oct 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into cpack-rpm-packaging
- Loading branch information
Showing
116 changed files
with
1,065 additions
and
2,529 deletions.
There are no files selected for viewing
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
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,108 @@ | ||
name: macOS GCC | ||
|
||
# Triggers the workflow on push or pull request events | ||
on: [push, pull_request] | ||
|
||
env: | ||
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) | ||
BUILD_TYPE: RelWithDebInfo | ||
# Unfortunately the tests for the Xerces plugin fail: https://travis-ci.org/ElektraInitiative/libelektra/jobs/483331657#L3740 | ||
# The curlget tests fail: https://github.com/ElektraInitiative/libelektra/issues/3382 | ||
PLUGINS: 'ALL;-xerces;-curlget' | ||
BINDINGS: 'ALL;-rust' | ||
# Skip homebrew cleanup to avoid issues with removal of packages | ||
HOMEBREW_NO_INSTALL_CLEANUP: 1 | ||
CC: gcc-10 | ||
CXX: g++-10 | ||
|
||
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/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix | ||
runs-on: macos-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Install Dependencies | ||
run: | | ||
brew install augeas | ||
brew install bison | ||
brew install dbus | ||
brew install discount | ||
brew install flex | ||
brew install gpgme | ||
brew install libev | ||
brew install libgcrypt | ||
brew install libgit2 | ||
brew install libuv | ||
brew install lua | ||
brew install ninja | ||
brew install qt | ||
brew install swig | ||
brew install yajl | ||
brew install zeromq | ||
- name: Setup Build Environment | ||
run: | | ||
gem install test-unit --no-document | ||
pip2 install cheetah # Required by kdb-gen | ||
brew tap homebrew/services | ||
brew update # Work around for [Homebrew Services issue 206](https://github.com/Homebrew/homebrew-services/issues/206) | ||
brew services restart dbus | ||
cmake -E make_directory ${{runner.workspace}}/build | ||
- name: Configure CMake | ||
# Use a bash shell so we can use the same syntax for environment variable | ||
# access regardless of the host operating system | ||
shell: bash | ||
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: | | ||
PATH="/usr/local/opt/ruby@2.7/bin:/usr/local/lib/ruby/gems/2.7.0/bin:$PATH" | ||
PATH="/usr/local/opt/python@3.9/bin:$PATH" | ||
SYSTEM_DIR="$PWD/kdbsystem" | ||
CMAKE_OPT+=( | ||
-GNinja | ||
-DPLUGINS="${PLUGINS:-ALL}" | ||
-DBINDINGS="${BINDINGS:-ALL}" | ||
-DTOOLS="${TOOLS:-ALL}" | ||
-DBUILD_FULL="${BUILD_FULL:-OFF}" | ||
-DBUILD_SHARED="${BUILD_SHARED:-ON}" | ||
-DENABLE_ASAN="${ENABLE_ASAN:-OFF}" | ||
-DCOMMON_FLAGS="${COMMON_FLAGS--Werror}" | ||
-DENABLE_DEBUG=ON | ||
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON | ||
-DKDB_DB_SYSTEM="$SYSTEM_DIR" | ||
-DKDB_DEFAULT_STORAGE="${KDB_DEFAULT_STORAGE:-dump}" | ||
-DKDB_DB_FILE="${KDB_DB_FILE:-default.ecf}" | ||
-DKDB_DB_INIT="${KDB_DB_INIT:-elektra.ecf}" | ||
$TRAVIS_BUILD_DIR | ||
) | ||
printf '—— CMake Config ——\n' | ||
for option in "${CMAKE_OPT[@]}"; do printf '%s\n' "$option"; done | ||
cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE ${CMAKE_OPT[@]} | ||
- name: Build | ||
working-directory: ${{runner.workspace}}/build | ||
shell: bash | ||
# Execute the build. You can specify a specific target with "--target <NAME>" | ||
run: cmake --build . | ||
|
||
- name: Install | ||
working-directory: ${{runner.workspace}}/build | ||
shell: bash | ||
run: output="$(cmake --build . --target install 2>&1)" || printf '%s' "$output" | ||
|
||
- name: Test | ||
working-directory: ${{runner.workspace}}/build | ||
shell: bash | ||
# Execute tests defined by the CMake configuration. | ||
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail | ||
run: | | ||
cmake --build . --target run_all | ||
kdb run_all |
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
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
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
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
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
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
File renamed without changes
Oops, something went wrong.