Skip to content

Commit 3246925

Browse files
committed
download sofa/vbf outside of container
1 parent cbd8930 commit 3246925

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
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 "https://syncandshare.desy.de/index.php/s/${VBF_TOKEN}/download" -o VBF.tar.gz
52+
mkdir -p sofa
53+
curl -fL "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

0 commit comments

Comments
 (0)