mirror of
https://github.com/pantor/inja.git
synced 2026-07-03 15:54:19 +00:00
modernize ci and docs
This commit is contained in:
@@ -3,8 +3,8 @@ name: CI
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
ci:
|
||||
name: ${{ matrix.name }}
|
||||
build-and-test:
|
||||
name: test-${{ matrix.name }}
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
strategy:
|
||||
@@ -105,7 +105,7 @@ jobs:
|
||||
compiler: clang
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Setup Cpp
|
||||
uses: aminya/setup-cpp@v1
|
||||
@@ -125,3 +125,24 @@ jobs:
|
||||
cmake -B build -S . -DCMAKE_BUILD_TYPE=Release ${{ matrix.cmake_vars }}
|
||||
cmake --build build -j2
|
||||
cd build && ctest -j2 --output-on-failure
|
||||
|
||||
|
||||
check-single-include:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Update single include
|
||||
run: |
|
||||
mv single_include/inja/inja.hpp single_include/inja/inja_old.hpp
|
||||
bash scripts/update_single_include.sh
|
||||
|
||||
- name: Check if equal
|
||||
working-directory: single_include
|
||||
run: |
|
||||
diff inja/inja.hpp inja/inja_old.hpp >/dev/null
|
||||
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: single_include_inja
|
||||
path: single_include/inja/inja.hpp
|
||||
|
||||
@@ -6,21 +6,20 @@ on:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
build-deploy:
|
||||
build-and-deploy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: dependencies
|
||||
env:
|
||||
dependency_packages: doxygen
|
||||
run: sudo apt-get update && sudo apt-get -y install ${dependency_packages}
|
||||
- name: Install doxygen
|
||||
run: sudo apt-get -y install doxygen
|
||||
|
||||
- name: build
|
||||
run: cd doc && doxygen ./Doxyfile
|
||||
- name: Build documentation
|
||||
working-directory: doc
|
||||
run: doxygen
|
||||
|
||||
- name: deploy
|
||||
uses: peaceiris/actions-gh-pages@v2.2.0
|
||||
- name: Deploy documentation
|
||||
uses: peaceiris/actions-gh-pages@v3
|
||||
env:
|
||||
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
|
||||
PUBLISH_BRANCH: gh-pages
|
||||
|
||||
@@ -1,25 +0,0 @@
|
||||
name: Single Include
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: update single include
|
||||
run: |
|
||||
mv single_include/inja/inja.hpp single_include/inja/inja_old.hpp
|
||||
bash scripts/update_single_include.sh
|
||||
|
||||
- name: check if equal
|
||||
working-directory: ${{runner.workspace}}/inja/single_include/
|
||||
shell: bash
|
||||
run: |
|
||||
diff inja/inja.hpp inja/inja_old.hpp >/dev/null
|
||||
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: single_include_inja
|
||||
path: single_include/inja/inja.hpp
|
||||
@@ -4,23 +4,18 @@
|
||||
<a href="https://github.com/pantor/inja/actions">
|
||||
<img src="https://github.com/pantor/inja/workflows/CI/badge.svg" alt="CI Status">
|
||||
</a>
|
||||
|
||||
<a href="https://github.com/pantor/inja/actions">
|
||||
<img src="https://github.com/pantor/inja/workflows/Documentation/badge.svg" alt="Documentation Status">
|
||||
</a>
|
||||
|
||||
<a href="https://www.codacy.com/manual/pantor/inja?utm_source=github.com&utm_medium=referral&utm_content=pantor/inja&utm_campaign=Badge_Grade">
|
||||
<img src="https://app.codacy.com/project/badge/Grade/211718f7a36541819d1244c0e2ee6f08"/>
|
||||
</a>
|
||||
|
||||
<a href="https://github.com/pantor/inja/releases">
|
||||
<img src="https://img.shields.io/github/release/pantor/inja.svg" alt="Github Releases">
|
||||
</a>
|
||||
|
||||
<a href="http://github.com/pantor/inja/issues">
|
||||
<img src="https://img.shields.io/github/issues/pantor/inja.svg" alt="Github Issues">
|
||||
</a>
|
||||
|
||||
<a href="https://raw.githubusercontent.com/pantor/inja/master/LICENSE">
|
||||
<img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="GitHub License">
|
||||
</a>
|
||||
|
||||
Reference in New Issue
Block a user