Skip to content

Commit

Permalink
modernize ci
Browse files Browse the repository at this point in the history
  • Loading branch information
pantor committed Oct 5, 2024
1 parent 807620c commit e69b150
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 23 deletions.
29 changes: 14 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,23 @@ jobs:
os: ubuntu-20.04
compiler: clang-9

- name: ubuntu-20.04-clang-11
os: ubuntu-20.04
compiler: clang-11

- name: ubuntu-20.04-clang-12
os: ubuntu-20.04
compiler: clang-12

- name: ubuntu-20.04-clang-11-no-exceptions
os: ubuntu-20.04
compiler: clang-11
- name: ubuntu-22.04-clang-15-no-exceptions
os: ubuntu-22.04
compiler: clang-15
cmake_vars: "-DCMAKE_CXX_FLAGS=-fno-exceptions -DBUILD_TESTING=OFF -DBUILD_BENCHMARK=ON"

- name: ubuntu-22.04-gcc
os: ubuntu-22.04
compiler: gcc

- name: ubuntu-24.04-gcc
os: ubuntu-24.04
compiler: gcc

- name: windows-2019-msvc
os: windows-2019
compiler: msvc
Expand All @@ -60,19 +60,19 @@ jobs:
os: macOS-12
compiler: gcc

- name: macOS-12-clang
os: macOS-12
- name: macOS-13-clang
os: macOS-13
compiler: clang

# - name: macOS-14-clang
# os: macOS-14
# compiler: clang

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup Cpp
uses: aminya/setup-cpp@v0.26.2
uses: aminya/setup-cpp@v0.44.0
with:
compiler: ${{ matrix.compiler }}

Expand All @@ -94,7 +94,7 @@ jobs:
check-single-include:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Update single include
run: |
Expand All @@ -103,10 +103,9 @@ jobs:
- name: Check if equal
working-directory: single_include
run: |
diff inja/inja.hpp inja/inja_old.hpp >/dev/null
run: diff inja/inja.hpp inja/inja_old.hpp >/dev/null

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: single_include_inja
path: single_include/inja/inja.hpp
16 changes: 8 additions & 8 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,32 +8,32 @@ on:
jobs:
build-and-deploy:
runs-on: ubuntu-latest

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

permissions:
pages: write
id-token: write

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: actions/configure-pages@v3
- uses: actions/configure-pages@v5

- name: Install doxygen
run: sudo apt-get -y install doxygen

- name: Build documentation
working-directory: doc
run: doxygen

- name: Upload artifact
uses: actions/upload-pages-artifact@v1
uses: actions/upload-pages-artifact@v3
with:
path: 'doc/html'

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
uses: actions/deploy-pages@v4

0 comments on commit e69b150

Please sign in to comment.