Skip to content

Commit 168a425

Browse files
authored
Merge pull request #347 from VERITAS-Observatory/cpp11-build
Download sofa/vbf outside of container
2 parents cbd8930 + 07d068f commit 168a425

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

.github/workflows/ci-buildmatrix-cpp11.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,32 +42,34 @@ jobs:
4242
- name: Extract source
4343
run: tar -xzf src.tgz
4444

45-
- name: Build inside ROOT CentOS7 container
45+
- name: Download VBF and SOFA on host
4646
env:
4747
VBF_TOKEN: ${{ secrets.VBFcpp11 }}
4848
SOFA20231011: ${{ secrets.SOFA20231011 }}
49+
run: |
50+
set -euo pipefail
51+
curl -fL --retry 3 --retry-delay 3 "https://syncandshare.desy.de/index.php/s/${VBF_TOKEN}/download" -o VBF.tar.gz
52+
mkdir -p sofa
53+
curl -fL --retry 3 --retry-delay 3 "https://syncandshare.desy.de/index.php/s/${SOFA20231011}/download" -o sofa/sofa.tar.gz
54+
55+
- name: Build inside ROOT CentOS7 container
4956
run: |
5057
set -euo pipefail
5158
echo "Using ROOT image: $ROOT_IMAGE"
5259
docker run --rm \
53-
-e VBF_TOKEN="$VBF_TOKEN" \
54-
-e SOFA20231011="$SOFA20231011" \
5560
-v "$PWD:/workspace" \
5661
-w /workspace \
5762
"$ROOT_IMAGE" /bin/bash -c '
5863
set -euo pipefail
5964
echo "ROOT version: $(root-config --version)"
6065
# Build VBF
61-
curl -L "https://syncandshare.desy.de/index.php/s/${VBF_TOKEN}/download" -o VBF.tar.gz
6266
mkdir -p VBF && tar -xzf VBF.tar.gz -C VBF --strip-components=1
6367
pushd VBF
6468
./configure --prefix=/workspace/VBF
6569
make -j4
6670
make install
6771
popd
6872
# Install SOFA
69-
mkdir -p sofa
70-
curl -L "https://syncandshare.desy.de/index.php/s/${SOFA20231011}/download" -o sofa/sofa.tar.gz
7173
./install_sofa.sh
7274
# Build EventDisplay
7375
export EVNDISPSYS=/workspace

.github/workflows/ci-buildmatrix-cpp17.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@ jobs:
2727
2828
- name: vbf
2929
run: |
30-
curl -L https://syncandshare.desy.de/index.php/s/${{ secrets.VBFcpp17 }}/download -o VBF.tar.gz
30+
curl -L --retry 3 --retry-delay 3 https://syncandshare.desy.de/index.php/s/${{ secrets.VBFcpp17 }}/download -o VBF.tar.gz
3131
mkdir VBF && tar -xzf VBF.tar.gz -C VBF --strip-components=1
3232
cd VBF && ./configure --prefix=$(echo $GITHUB_WORKSPACE)/VBF
3333
make
3434
make install
3535
3636
- name: sofa
3737
run: |
38-
curl -L https://syncandshare.desy.de/index.php/s/${{ secrets.SOFA20231011 }}/download -o sofa/sofa.tar.gz
38+
curl -L --retry 3 --retry-delay 3 https://syncandshare.desy.de/index.php/s/${{ secrets.SOFA20231011 }}/download -o sofa/sofa.tar.gz
3939
./install_sofa.sh
4040
4141
- name: eventdisplay

0 commit comments

Comments
 (0)