-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make library compilation on CI work for PRs
- Loading branch information
1 parent
088c295
commit 6b1467d
Showing
2 changed files
with
8 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,15 @@ | ||
name: Compile InChI library from triggering branch | ||
name: Compile InChI library from triggering commit | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- run: | | ||
git config --global --add safe.directory "$GITHUB_WORKSPACE" # https://github.com/actions/runner-images/issues/6775 | ||
mkdir "$GITHUB_WORKSPACE/$LIB_DIR" | ||
./INCHI-1-TEST/compile_inchi_lib.sh $BRANCH "$GITHUB_WORKSPACE/$LIB_DIR" | ||
if [ "$BRANCH" != "main" ]; then | ||
# Rename library to libinchi.so.main, since that's the name the tests expect. | ||
mv "$GITHUB_WORKSPACE/$LIB_DIR/libinchi.so.$BRANCH" "$GITHUB_WORKSPACE/$LIB_DIR/libinchi.so.main" | ||
fi | ||
./INCHI-1-TEST/compile_inchi_lib.sh $COMMIT "$GITHUB_WORKSPACE/$LIB_DIR" | ||
# Rename library to libinchi.so.main, since that's the name the tests expect. | ||
mv "$GITHUB_WORKSPACE/$LIB_DIR/libinchi.so.$COMMIT" "$GITHUB_WORKSPACE/$LIB_DIR/libinchi.so.main" | ||
shell: bash | ||
env: | ||
BRANCH: ${{ github.ref_name }} | ||
COMMIT: ${{ github.sha }} | ||
LIB_DIR: INCHI-1-TEST/libs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters