Skip to content

Commit 6dbf842

Browse files
committed
gdcm: remove hardcoding of version in tests
1 parent cd019ab commit 6dbf842

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

gdcm.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ environment:
1212
- build-base
1313
- busybox
1414

15+
var-transforms:
16+
- from: ${{package.version}}
17+
match: ^(\d+\.\d+)\.\d+$
18+
replace: "$1"
19+
to: major-minor-version
20+
1521
pipeline:
1622
- uses: git-checkout
1723
with:
@@ -74,7 +80,7 @@ test:
7480
}
7581
EOF
7682
77-
g++ -I/usr/include/gdcm-3.1 -o test_gdcm test_gdcm.cpp -lgdcmDSED -lgdcmMSFF -lgdcmCommon -lgdcmDICT -lgdcmIOD -lgdcmzlib
83+
g++ -I/usr/include/gdcm-${{vars.major-minor-version}} -o test_gdcm test_gdcm.cpp -lgdcmDSED -lgdcmMSFF -lgdcmCommon -lgdcmDICT -lgdcmIOD -lgdcmzlib
7884
./test_gdcm
7985
8086
update:

0 commit comments

Comments
 (0)