2
0
mirror of https://github.com/meganz/MEGAcmd synced 2025-08-31 05:45:11 +00:00

fix clone script and removed jq dependency

fix macos vcpkg path
This commit is contained in:
Pablo Martin
2024-05-15 14:52:08 +02:00
parent 13ba649470
commit 7ebc082251
2 changed files with 4 additions and 4 deletions

View File

@@ -4,10 +4,10 @@ set -e
#Currently libuv uses a git-tree older than baseline, enforcing older commit here:
VCPKG_OLDEST_COMMIT=293f090a9be5a88a2a77838c6346d5ef9d3df81b
if [ -z "${VCPKG_OLDEST_COMMIT}" ]; then
commit=$(jq -r '."builtin-baseline"' vcpkg.json)
if [ -z ${VCPKG_OLDEST_COMMIT+x} ]; then
commit=$(grep '."builtin-baseline"' vcpkg.json | awk -F '"' '{print $(NF-1)}')
else
commit="${VCPKG_OLDEST_COMMIT}"
fi
commit_date=$(curl -s "https://api.github.com/repos/microsoft/vcpkg/commits/$commit" | jq -r '.commit.author.date')
commit_date=$(curl -s "https://api.github.com/repos/microsoft/vcpkg/commits/$commit" | grep '"date"' | head -n 1 | awk -F '"' '{print $(NF-1)}')
git clone --shallow-since $commit_date https://github.com/microsoft/vcpkg $@

View File

@@ -107,7 +107,7 @@ pipeline {
environment{
PATH = "cmdinstall/bin:${env.PATH}"
BUILD_DIR = "cmdbuild"
VCPKGPATH = "/opt/vcpkg"
VCPKGPATH = "${env.HOME}/jenkins/vcpkg"
}
options{
timeout(time: 3, unit: 'HOURS')