-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: owent <[email protected]>
- Loading branch information
Showing
4 changed files
with
98 additions
and
28 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 |
---|---|---|
|
@@ -18,6 +18,43 @@ jobs: | |
shell: bash | ||
run: | | ||
bash ci/do_ci.sh format ; | ||
document: # job id, can be any string | ||
name: Document | ||
# This job runs on Linux | ||
strategy: | ||
matrix: | ||
include: | ||
- os: ubuntu-latest | ||
triplet: x64-linux | ||
cc: gcc | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Build & Test | ||
shell: bash | ||
run: | | ||
sudo apt-get update ; | ||
sudo apt-get install --no-install-recommends --no-install-suggests -y doxygen graphviz ; | ||
bash ci/do_ci.sh document ; | ||
- name: Deploy | ||
if: ${{ github.event_name == 'push' }} | ||
env: | ||
COMMIT_REF: ${{ github.ref }} | ||
DOCUMENT_DEPLOY_KEY: ${{ secrets.DOCUMENT_DEPLOY_KEY }} | ||
shell: bash | ||
run: | | ||
cd docs/output ; | ||
git config --global init.defaultBranch main ; | ||
git init ; | ||
git add . ; | ||
mkdir -p $HOME/.ssh ; | ||
chmod 700 $HOME/.ssh ; | ||
echo "$DOCUMENT_DEPLOY_KEY" > $HOME/.ssh/deploy.key ; | ||
chmod 600 $HOME/.ssh/deploy.key ; | ||
export GIT_SSH_COMMAND="ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o IdentityFile=$HOME/.ssh/deploy.key" ; | ||
git -c user.name='owent' -c user.email='[email protected]' commit -m "Delpoy document for $COMMIT_REF"; | ||
git push -f -q [email protected]:owent/libcopp-doc.git HEAD:main ; | ||
unix_build: # job id, can be any string | ||
name: Unix Build | ||
# This job runs on Linux | ||
|
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,6 @@ | ||
ignore: | ||
- "**/third_party/**" | ||
- "**/sample/**" | ||
- "**/test/**" | ||
- "**/sample/*" | ||
- "**/test/**/*" | ||
- "**/tools/**" | ||
- "**/build_jobs_coverage/CMakeFiles/**" |