mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 12:02:48 +01:00
guix: "Invert" guix-start
/guix-check
cmd-line argument behaviour, defaults to pwd
This commit is contained in:
parent
187a4f1a0c
commit
3ac5739e38
2
.github/workflows/guix-build.yml
vendored
2
.github/workflows/guix-build.yml
vendored
@ -114,7 +114,7 @@ jobs:
|
|||||||
-v ${{ github.workspace }}/.cache:/home/ubuntu/.cache \
|
-v ${{ github.workspace }}/.cache:/home/ubuntu/.cache \
|
||||||
-w /src/dash \
|
-w /src/dash \
|
||||||
ghcr.io/${{ needs.build-image.outputs.repo-name }}/dashcore-guix-builder:${{ needs.build-image.outputs.image-tag }} && \
|
ghcr.io/${{ needs.build-image.outputs.repo-name }}/dashcore-guix-builder:${{ needs.build-image.outputs.image-tag }} && \
|
||||||
docker exec guix-daemon bash -c 'HOSTS=${{ matrix.build_target }} /usr/local/bin/guix-start'
|
docker exec guix-daemon bash -c 'HOSTS=${{ matrix.build_target }} /usr/local/bin/guix-start /src/dash'
|
||||||
|
|
||||||
- name: Ensure build passes
|
- name: Ensure build passes
|
||||||
run: |
|
run: |
|
||||||
|
@ -2,11 +2,7 @@
|
|||||||
|
|
||||||
set -eo pipefail
|
set -eo pipefail
|
||||||
|
|
||||||
if [[ -n "${1}" ]]; then
|
WORKSPACE_PATH="${1:-$(pwd)}"
|
||||||
WORKSPACE_PATH="$1"
|
|
||||||
else
|
|
||||||
WORKSPACE_PATH="/src/dash"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ ! -d "$WORKSPACE_PATH" ]]; then
|
if [[ ! -d "$WORKSPACE_PATH" ]]; then
|
||||||
echo "$0: $WORKSPACE_PATH is not a valid directory, exiting!"
|
echo "$0: $WORKSPACE_PATH is not a valid directory, exiting!"
|
||||||
|
@ -2,11 +2,7 @@
|
|||||||
|
|
||||||
set -eo pipefail
|
set -eo pipefail
|
||||||
|
|
||||||
if [[ -n "${1}" ]]; then
|
WORKSPACE_PATH="${1:-$(pwd)}"
|
||||||
WORKSPACE_PATH="$1"
|
|
||||||
else
|
|
||||||
WORKSPACE_PATH="/src/dash"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ ! -d "$WORKSPACE_PATH" ]]; then
|
if [[ ! -d "$WORKSPACE_PATH" ]]; then
|
||||||
echo "$0: $WORKSPACE_PATH is not a valid directory, exiting!"
|
echo "$0: $WORKSPACE_PATH is not a valid directory, exiting!"
|
||||||
@ -25,8 +21,11 @@ if [[ ! -d "${SDK_PATH}/${XCODE_ARCHIVE}" ]]; then
|
|||||||
curl -L https://bitcoincore.org/depends-sources/sdks/${XCODE_ARCHIVE}.tar.gz | tar -xz -C "${SDK_PATH}"
|
curl -L https://bitcoincore.org/depends-sources/sdks/${XCODE_ARCHIVE}.tar.gz | tar -xz -C "${SDK_PATH}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Avoid adding duplicate safe.directory option
|
# Add safe.directory option only when WORKSPACE_PATH was specified via cmd-line arguments (happens in CI)
|
||||||
|
if [[ -n "${1}" ]]; then
|
||||||
|
# Avoid adding duplicates
|
||||||
git config --global --fixed-value --get safe.directory "${WORKSPACE_PATH}" || git config --global --add safe.directory "${WORKSPACE_PATH}"
|
git config --global --fixed-value --get safe.directory "${WORKSPACE_PATH}" || git config --global --add safe.directory "${WORKSPACE_PATH}"
|
||||||
|
fi
|
||||||
|
|
||||||
cd "${WORKSPACE_PATH}"
|
cd "${WORKSPACE_PATH}"
|
||||||
git status >> /dev/null
|
git status >> /dev/null
|
||||||
|
Loading…
Reference in New Issue
Block a user