mirror of
https://github.com/libgit2/libgit2.git
synced 2026-06-22 06:26:26 +00:00
This was caused by the tests being compiled with -D_FILE_OFFSET_BITS=64 which causes incompatibilities if libgit2 itself is not. As this has been resolved the environment variable is no longer necessary and can be removed.
57 lines
1.5 KiB
YAML
57 lines
1.5 KiB
YAML
# Run a build step in a container or directly on the Actions runner
|
|
name: Run Build Step
|
|
description: Run a build step in a container or directly on the Actions runner
|
|
|
|
inputs:
|
|
command:
|
|
description: Command to run
|
|
type: string
|
|
required: true
|
|
container:
|
|
description: Optional container to run in
|
|
type: string
|
|
container-version:
|
|
description: Version of the container to run
|
|
type: string
|
|
shell:
|
|
description: Shell to use
|
|
type: string
|
|
required: true
|
|
default: 'bash'
|
|
cmake-global-options:
|
|
description: CMAKE_GLOBAL_OPTIONS to pass
|
|
type: string
|
|
|
|
runs:
|
|
using: 'composite'
|
|
steps:
|
|
- run: |
|
|
export CMAKE_GLOBAL_OPTIONS="${{ inputs.cmake-global-options }}"
|
|
|
|
if [ -n "${{ inputs.container }}" ]; then
|
|
docker run \
|
|
--rm \
|
|
--user "$(id -u):$(id -g)" \
|
|
-v "$(pwd)/source:/home/libgit2/source" \
|
|
-v "$(pwd)/build:/home/libgit2/build" \
|
|
-w /home/libgit2 \
|
|
-e ASAN_SYMBOLIZER_PATH \
|
|
-e CC \
|
|
-e CFLAGS \
|
|
-e CMAKE_GENERATOR \
|
|
-e CMAKE_OPTIONS \
|
|
-e CMAKE_GLOBAL_OPTIONS \
|
|
-e GITTEST_NEGOTIATE_PASSWORD \
|
|
-e PKG_CONFIG_PATH \
|
|
-e SKIP_NEGOTIATE_TESTS \
|
|
-e SKIP_SSH_TESTS \
|
|
-e SKIP_PUSHOPTIONS_TESTS \
|
|
-e TSAN_OPTIONS \
|
|
-e UBSAN_OPTIONS \
|
|
${{ inputs.container-version }} \
|
|
/bin/bash -c "${{ inputs.command }}"
|
|
else
|
|
${{ inputs.command }}
|
|
fi
|
|
shell: ${{ inputs.shell != '' && inputs.shell || 'bash' }}
|