forked from Colvars/colvars
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
86 changed files
with
900 additions
and
623 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
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
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,6 +1,7 @@ | ||
name: "Library" | ||
|
||
on: [push, pull_request] | ||
on: | ||
push: | ||
|
||
|
||
jobs: | ||
|
@@ -9,7 +10,6 @@ jobs: | |
|
||
name: Basic checks | ||
runs-on: ubuntu-latest | ||
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository | ||
outputs: | ||
hassecrets: ${{ steps.checksecrets.outputs.hassecrets }} | ||
env: | ||
|
@@ -84,6 +84,13 @@ jobs: | |
- name: Print ccache stats | ||
run: ccache -s -v | ||
|
||
- name: Keep only one cache besides the one from this job | ||
shell: bash | ||
env: | ||
GH_TOKEN: ${{ github.token }} | ||
run: | | ||
bash ${{ github.workspace }}/devel-tools/cleanup-gh-cache.sh ${{ runner.os }}-build-basic- | ||
build-doc: | ||
name: Build documentation | ||
|
@@ -109,12 +116,36 @@ jobs: | |
- name: Checkout website repository | ||
uses: actions/checkout@v4 | ||
with: | ||
ssh-key: ${{ secrets.PULL_PUSH_COLVARS_GITHUB_IO }} | ||
repository: 'Colvars/colvars.github.io' | ||
path: 'website' | ||
|
||
- name: Build doc | ||
- name: Build doc for current branch | ||
working-directory: doc | ||
run: | | ||
make clean-all | ||
apptainer exec ${{ github.workspace }}/devel-tools/texlive.sif make | ||
- name: Install SSH key for access to website repository | ||
if: contains(github.event.head_commit.message, '[update-doc]') | ||
env: | ||
WEBSITE_SSH_KEY: ${{ secrets.PULL_PUSH_COLVARS_GITHUB_IO }} | ||
run: | | ||
mkdir -p -m 700 ~/.ssh | ||
echo "${WEBSITE_SSH_KEY}" > ~/.ssh/website | ||
chmod 600 ~/.ssh/website | ||
- name: Push updated doc to website repository | ||
working-directory: doc | ||
run: apptainer exec ${{ github.workspace }}/devel-tools/texlive.sif make | ||
if: contains(github.event.head_commit.message, '[update-doc]') | ||
env: | ||
COLVARS_WEBSITE_TREE: ${{ github.workspace }}/website | ||
run: | | ||
apptainer exec ${{ github.workspace }}/devel-tools/texlive.sif make install | ||
export GIT_SSH="ssh -i ~/.ssh/website" | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "CI runner" | ||
bash update_website.sh ${{ github.workspace }}/website | ||
codeql: | ||
|
@@ -267,7 +298,6 @@ jobs: | |
name: Linux x86_64 (GCC, Clang) | ||
runs-on: ubuntu-latest | ||
needs: basicchecks | ||
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository | ||
env: | ||
CCACHE: ccache | ||
CMAKE_GENERATOR: Ninja | ||
|
@@ -478,7 +508,6 @@ jobs: | |
name: Windows x86_64 (MSVC) | ||
runs-on: windows-latest | ||
needs: basicchecks | ||
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository | ||
|
||
steps: | ||
|
||
|
@@ -500,7 +529,6 @@ jobs: | |
name: macOS x86_64 (AppleClang) | ||
runs-on: macos-latest | ||
needs: basicchecks | ||
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository | ||
|
||
steps: | ||
|
||
|
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
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
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
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
Oops, something went wrong.