Skip to content

Commit

Permalink
Fixing build-static.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
khb7840 committed Oct 7, 2022
1 parent fc2d9ae commit dbc4c8d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ jobs:
./foldcomp compress ../test/test.cif.gz
./foldcomp decompress ../test/test.cif.fcz
RMSD1=$(./foldcomp rmsd ../test/test.pdb ../test/test_fcz.pdb | cut -f6)
awk -v check=$RMSD1 -v target=0.102262 'BEGIN { if (check != target) { print check"!="target; exit 1 } }'
awk -v check=$RMSD1 -v target=0.102262 'BEGIN { diff = check - target; if (diff < 0) diff = -diff; if (diff > 0.001) { print check"!="target; exit 1 } }'
RMSD2=$(./foldcomp rmsd ../test/test.cif.gz ../test/test.cif_fcz.pdb | cut -f6)
awk -v check=$RMSD2 -v target=0.144428 'BEGIN { if (check != target) { print check"!="target; exit 1 } }'
awk -v check=$RMSD2 -v target=0.144428 'BEGIN { diff = check - target; if (diff < 0) diff = -diff; if (diff > 0.001) { print check"!="target; exit 1 } }'
echo "All good!"
compile:
Expand Down
6 changes: 3 additions & 3 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# Description:
# Build script for foldcomp.
# ---
# Last Modified: 2022-10-07 17:34:24
# Last Modified: 2022-10-07 17:48:48
# Modified By: Hyunbin Kim (khb7840@gmail.com)
# ---
# Copyright © 2022 Hyunbin Kim, All rights reserved
Expand All @@ -30,8 +30,8 @@ cmake --build ./build --target foldcomp
./build/foldcomp decompress -a ./test/compressed_cif.fcz ./test/decompressed_cif.pdb
# RMSD
RMSD1=$(./build/foldcomp rmsd ./test/test.pdb ./test/decompressed.pdb | cut -f6)
awk -v check=$RMSD1 -v target=0.102262 'BEGIN { if (check != target) { print check"!="target; exit 1 } }'
awk -v check=$RMSD1 -v target=0.102262 'BEGIN { diff = check - target; if (diff < 0) diff = -diff; if (diff > 0.001) { print check"!="target; exit 1 } }'
RMSD2=$(./build/foldcomp rmsd ./test/test.cif.gz ./test/decompressed_cif.pdb | cut -f6)
awk -v check=$RMSD2 -v target=0.144428 'BEGIN { if (check != target) { print check"!="target; exit 1 } }'
awk -v check=$RMSD2 -v target=0.144428 'BEGIN { diff = check - target; if (diff < 0) diff = -diff; if (diff > 0.001) { print check"!="target; exit 1 } }'

echo "All good!"

0 comments on commit dbc4c8d

Please sign in to comment.