feat: use a single r-version-to-build.txt file
All checks were successful
ci/crow/manual/build/5 Pipeline was successful
ci/crow/manual/build/13 Pipeline was successful
ci/crow/manual/build/7 Pipeline was successful
ci/crow/manual/build/1 Pipeline was successful
ci/crow/manual/build/9 Pipeline was successful
ci/crow/manual/build/12 Pipeline was successful
ci/crow/manual/build/11 Pipeline was successful
ci/crow/manual/build/8 Pipeline was successful
ci/crow/manual/build/2 Pipeline was successful
ci/crow/manual/build/6 Pipeline was successful
ci/crow/manual/build/10 Pipeline was successful
ci/crow/manual/build/15 Pipeline was successful
ci/crow/manual/build/4 Pipeline was successful
ci/crow/manual/build/3 Pipeline was successful
ci/crow/manual/build/14 Pipeline was successful
All checks were successful
ci/crow/manual/build/5 Pipeline was successful
ci/crow/manual/build/13 Pipeline was successful
ci/crow/manual/build/7 Pipeline was successful
ci/crow/manual/build/1 Pipeline was successful
ci/crow/manual/build/9 Pipeline was successful
ci/crow/manual/build/12 Pipeline was successful
ci/crow/manual/build/11 Pipeline was successful
ci/crow/manual/build/8 Pipeline was successful
ci/crow/manual/build/2 Pipeline was successful
ci/crow/manual/build/6 Pipeline was successful
ci/crow/manual/build/10 Pipeline was successful
ci/crow/manual/build/15 Pipeline was successful
ci/crow/manual/build/4 Pipeline was successful
ci/crow/manual/build/3 Pipeline was successful
ci/crow/manual/build/14 Pipeline was successful
This commit is contained in:
parent
4b3a87bbe4
commit
34dac66fc1
1 changed files with 11 additions and 7 deletions
|
|
@ -97,9 +97,9 @@ steps:
|
|||
image: alpine:3.22
|
||||
commands:
|
||||
- apk add -q --no-cache curl
|
||||
- curl -s https://raw.githubusercontent.com/Homebrew/homebrew-core/master/Formula/r/r.rb | grep -o 'R-[0-9]*\.[0-9]*\.[0-9]*' | tr -d 'R-' | tr -d '"' | head -n 1 > r-release-version.txt
|
||||
- echo "4.2.3" > r-release-version.txt
|
||||
- cat r-release-version.txt
|
||||
- curl -s https://raw.githubusercontent.com/Homebrew/homebrew-core/master/Formula/r/r.rb | grep -o 'R-[0-9]*\.[0-9]*\.[0-9]*' | tr -d 'R-' | tr -d '"' | head -n 1 > r-version-to-build.txt
|
||||
- echo "4.2.3" > r-version-to-build.txt
|
||||
- cat r-version-to-build.txt
|
||||
backend_options:
|
||||
kubernetes:
|
||||
resources:
|
||||
|
|
@ -128,8 +128,12 @@ steps:
|
|||
image: alpine:3.22
|
||||
commands:
|
||||
- apk add -q --no-cache aws-cli
|
||||
- aws s3 ls s3://devxy-r-builds/${PLATFORM_ID}/ | grep ${ARCH_ID} | tail -1 | awk '{print $NF}' | cut -c 3-7 > r_build_latest.txt
|
||||
- cat r_build_latest.txt
|
||||
- |
|
||||
VERSION=$(cat r-version-to-build.txt)
|
||||
aws s3 ls s3://devxy-r-builds/${PLATFORM_ID}/ | \
|
||||
awk -v arch="${ARCH_ID}" -v ver="${VERSION}" \
|
||||
'$0 ~ arch && $0 ~ ver {print substr($NF, 3, 5)}' > r-version-s3.txt
|
||||
- cat r-version-s3.txt
|
||||
backend_options:
|
||||
kubernetes:
|
||||
nodeSelector:
|
||||
|
|
@ -149,10 +153,10 @@ steps:
|
|||
DOCKER_HOST: tcp://docker:2375
|
||||
commands: |
|
||||
# docker info
|
||||
if [ ! -s r_build_latest.txt ] || [ ! "$(cat r-release-version.txt)" = "$(cat r_build_latest.txt)" ]; then
|
||||
if ! grep -qF "$(cat r-version-to-build.txt)" r-version-s3.txt; then
|
||||
apk add -q --no-cache py3-pip make just aws-cli docker-compose
|
||||
pip3 install -q b2 --break-system-packages
|
||||
just build-r-${PLATFORM} $(cat r-release-version.txt)
|
||||
just build-r-${PLATFORM} $(cat r-version-to-build.txt)
|
||||
fi
|
||||
backend_options:
|
||||
kubernetes:
|
||||
|
|
|
|||
Loading…
Reference in a new issue