actions: work inside repository clone
@@ -64,6 +64,8 @@ jobs:
steps:
- uses: actions/checkout@v2
+ with:
+ path: 'libelektra'
- uses: actions/setup-python@v2
with:
python-version: '3.x' # Version range or exact version of a Python version to use, using SemVer's version range syntax
@@ -136,7 +138,7 @@ jobs:
brew update # Work around for [Homebrew Services issue 206](https://github.com/Homebrew/homebrew-services/issues/206)
brew postinstall dbus
brew services restart dbus
- cmake -E make_directory ${{runner.workspace}}/build
+ cmake -E make_directory ${{runner.workspace}}/libelektra/build
export JAVA_HOME=$(/usr/libexec/java_home -v 16)
echo "JAVA_HOME=$JAVA_HOME" >> $GITHUB_ENV
echo "$JAVA_HOME/bin" >> $GITHUB_PATH
@@ -145,7 +147,7 @@ jobs:
# 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
+ working-directory: ${{runner.workspace}}/libelektra/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
@@ -180,18 +182,18 @@ jobs:
cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE ${CMAKE_OPT[@]}
- name: Build
- working-directory: ${{runner.workspace}}/build
+ working-directory: ${{runner.workspace}}/libelektra/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
+ working-directory: ${{runner.workspace}}/libelektra/build
shell: bash
run: output="$(cmake --build . --target install 2>&1)" || printf '%s' "$output"
- name: Test
- working-directory: ${{runner.workspace}}/build
+ working-directory: ${{runner.workspace}}/libelektra/build
shell: bash
# Execute tests defined by the CMake configuration.
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
