Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 26 additions & 24 deletions .github/workflows/generated-headers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,33 @@ on:
push:
branches-ignore:
- 'dependabot/**'
permissions:
contents: write
pull-requests: write
jobs:
generate-headers:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Setup
run: |
sudo rm /etc/apt/sources.list.d/microsoft-prod.list
sudo apt update
sudo apt install -y libboost-dev
- name: Configure
run: |
./autogen.sh
./configure
- name: Update headers
run: |
find ql -name *.am | xargs touch
make dist
rm QuantLib-*.tar.gz
- uses: peter-evans/create-pull-request@v8
with:
token: ${{ secrets.MACHINE_ACCOUNT_PAT }}
push-to-fork: ${{ vars.MACHINE_ACCOUNT }}/QuantLib
branch: update-generated-headers-${{ github.ref_name }}
delete-branch: true
commit-message: 'Update generated headers'
title: 'Update generated headers'
author: lballabio[bot] <224797326+lballabio-bot@users.noreply.github.com>
- uses: actions/checkout@v4
- name: Setup
run: |
sudo rm /etc/apt/sources.list.d/microsoft-prod.list
sudo apt update
sudo apt install -y libboost-dev
- name: Configure
run: |
./autogen.sh
./configure
- name: Update headers
run: |
find ql -name *.am | xargs touch
make dist
rm QuantLib-*.tar.gz
- uses: peter-evans/create-pull-request@v8
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: update-generated-headers-${{ github.ref_name }}
delete-branch: true
commit-message: "Update generated headers"
title: "Update generated headers"
body: "Automated update of generated headers."
38 changes: 24 additions & 14 deletions .github/workflows/includes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,31 @@ on:
push:
branches-ignore:
- 'dependabot/**'

permissions:
contents: write
pull-requests: write

jobs:
check-includes:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v6
- name: Check
run: |
shopt -s globstar
sed -i -E -e 's|#include *"(ql/.*\.hpp)"|#include <\1>|g' **/*.[hc]pp
- uses: peter-evans/create-pull-request@v8
with:
token: ${{ secrets.MACHINE_ACCOUNT_PAT }}
push-to-fork: ${{ vars.MACHINE_ACCOUNT }}/QuantLib
branch: fix-include-in-quotes-${{ github.ref_name }}
delete-branch: true
commit-message: 'Fix inclusions of ql headers in double quotes'
title: 'Fix inclusions of ql headers in double quotes'
author: lballabio[bot] <224797326+lballabio-bot@users.noreply.github.com>
- name: Checkout
uses: actions/checkout@v4

- name: Fix includes
shell: bash
run: |
shopt -s globstar
sed -i -E -e 's|#include "(ql/.\.hpp)"|#include <\1>|g' **/*.[hc]pp

- name: Create Pull Request
uses: peter-evans/create-pull-request@v8
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: fix-include-in-quotes-${{ github.ref_name }}
delete-branch: true
commit-message: "Fix inclusions of ql headers in double quotes"
title: "Fix inclusions of ql headers in double quotes"
body: "Automated fix of ql header inclusions."
28 changes: 17 additions & 11 deletions .github/workflows/misspell.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,26 @@
name: Misspell fixer

on:
push:
branches-ignore:
- 'dependabot/**'

permissions:
contents: write
pull-requests: write

jobs:
check:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v6
- uses: sobolevn/misspell-fixer-action@master
- uses: peter-evans/create-pull-request@v8
with:
token: ${{ secrets.MACHINE_ACCOUNT_PAT }}
push-to-fork: ${{ vars.MACHINE_ACCOUNT }}/QuantLib
branch: misspell-fixes-${{ github.ref_name }}
delete-branch: true
commit-message: 'Fixes by misspell-fixer'
title: 'Typos fixed by misspell-fixer'
author: lballabio[bot] <224797326+lballabio-bot@users.noreply.github.com>
- uses: actions/checkout@v4
- uses: sobolevn/misspell-fixer-action@master
- uses: peter-evans/create-pull-request@v8
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: misspell-fixes-${{ github.ref_name }}
delete-branch: true
commit-message: "Fixes by misspell-fixer"
title: "Typos fixed by misspell-fixer"
body: "Automated typo fixes by misspell-fixer."
49 changes: 27 additions & 22 deletions .github/workflows/namespaces.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,34 @@ on:
push:
branches-ignore:
- 'dependabot/**'
permissions:
contents: write
pull-requests: write
jobs:
check-namespaces:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Check
run: |
shopt -s globstar
sed -i -e 's/ext::function\b/std::function/g' **/*.[hc]pp
sed -i -e 's/ext::bind\b/std::bind/g' **/*.[hc]pp
sed -i -e 's/ext::ref\b/std::ref/g' **/*.[hc]pp
sed -i -e 's/ext::cref\b/std::cref/g' **/*.[hc]pp
sed -i -e 's/ext::placeholders\b/std::placeholders/g' **/*.[hc]pp
sed -i -e 's/ext::tuple\b/std::tuple/g' **/*.[hc]pp
sed -i -e 's/ext::make_tuple\b/std::make_tuple/g' **/*.[hc]pp
sed -i -e 's/ext::get\b/std::get/g' **/*.[hc]pp
sed -i -e 's/ext::tie\b/std::tie/g' **/*.[hc]pp
- uses: peter-evans/create-pull-request@v8
with:
token: ${{ secrets.MACHINE_ACCOUNT_PAT }}
push-to-fork: ${{ vars.MACHINE_ACCOUNT }}/QuantLib
branch: fix-ext-namespace-${{ github.ref_name }}
delete-branch: true
commit-message: 'Fix deprecated uses of ext namespace'
title: 'Fix deprecated uses of ext namespace'
author: lballabio[bot] <224797326+lballabio-bot@users.noreply.github.com>
- name: Checkout
uses: actions/checkout@v4
- name: Fix ext namespace
shell: bash
run: |
shopt -s globstar
sed -i -e 's/ext::function\b/std::function/g' **/*.[hc]pp
sed -i -e 's/ext::bind\b/std::bind/g' **/*.[hc]pp
sed -i -e 's/ext::ref\b/std::ref/g' **/*.[hc]pp
sed -i -e 's/ext::cref\b/std::cref/g' **/*.[hc]pp
sed -i -e 's/ext::placeholders\b/std::placeholders/g' **/*.[hc]pp
sed -i -e 's/ext::tuple\b/std::tuple/g' **/*.[hc]pp
sed -i -e 's/ext::make_tuple\b/std::make_tuple/g' **/*.[hc]pp
sed -i -e 's/ext::get\b/std::get/g' **/*.[hc]pp
sed -i -e 's/ext::tie\b/std::tie/g' **/*.[hc]pp
- name: Create Pull Request
uses: peter-evans/create-pull-request@v8
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: fix-ext-namespace-${{ github.ref_name }}
delete-branch: true
commit-message: "Fix deprecated uses of ext namespace"
title: "Fix deprecated uses of ext namespace"
body: "Automated fix of deprecated ext namespace usages to std equivalents."
38 changes: 23 additions & 15 deletions .github/workflows/sync-qldefines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,30 @@ on:
push:
branches-ignore:
- 'dependabot/**'
permissions:
contents: write
pull-requests: write
jobs:
sync-files:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v6
- name: Check
run: |
cp ql/qldefines.hpp ql/qldefines.hpp.cfg
sed -i -e 's|^#if defined(HAVE_CONFIG_H).*$|#if defined(QL_HAVE_CONFIG_H) // Dynamically created by cmake|g' ql/qldefines.hpp.cfg
sed -i -e 's|^/\* install-hook \*/.*$|#cmakedefine QL_HAVE_CONFIG_H|g' ql/qldefines.hpp.cfg
- uses: peter-evans/create-pull-request@v8
with:
token: ${{ secrets.MACHINE_ACCOUNT_PAT }}
push-to-fork: ${{ vars.MACHINE_ACCOUNT }}/QuantLib
branch: sync-qldefine-${{ github.ref_name }}
delete-branch: true
commit-message: 'Sync qldefines.hpp.cfg with original header'
title: 'Sync qldefines.hpp.cfg with original header'
author: lballabio[bot] <224797326+lballabio-bot@users.noreply.github.com>
- name: Checkout
uses: actions/checkout@v4

- name: Sync files
shell: bash
run: |
cp ql/qldefines.hpp ql/qldefines.hpp.cfg
sed -i -e 's|^#if defined(HAVE_CONFIG_H).*$|#if defined(QL_HAVE_CONFIG_H) // Dynamically created by cmake|g' ql/qldefines.hpp.cfg
sed -i -e 's|^/\* install-hook \*/.*$|#cmakedefine QL_HAVE_CONFIG_H|g' ql/qldefines.hpp.cfg

- name: Create Pull Request
uses: peter-evans/create-pull-request@v8
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: sync-qldefine-${{ github.ref_name }}
delete-branch: true
commit-message: "Sync qldefines.hpp.cfg with original header"
title: "Sync qldefines.hpp.cfg with original header"
body: "Automated sync of qldefines.hpp.cfg with original header."
41 changes: 26 additions & 15 deletions .github/workflows/test-macros.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,35 @@
name: Replace Boost macros that might not work with AAD types

on:
push:
branches-ignore:
- 'dependabot/**'

permissions:
contents: write
pull-requests: write

jobs:
check-namespaces:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v6
- name: Check
run: |
sed -i -e 's/BOOST_CHECK_SMALL\b/QL_CHECK_SMALL/g' test-suite/*.cpp
sed -i -e 's/BOOST_CHECK_CLOSE\b/QL_CHECK_CLOSE/g' test-suite/*.cpp
sed -i -e 's/BOOST_CHECK_CLOSE_FRACTION\b/QL_CHECK_CLOSE_FRACTION/g' test-suite/*.cpp
- uses: peter-evans/create-pull-request@v8
with:
token: ${{ secrets.MACHINE_ACCOUNT_PAT }}
push-to-fork: ${{ vars.MACHINE_ACCOUNT }}/QuantLib
branch: fix-boost-test-macros-${{ github.ref_name }}
delete-branch: true
commit-message: 'Replace Boost macros that might not work with AAD types'
title: 'Replace Boost macros that might not work with AAD types'
author: lballabio[bot] <224797326+lballabio-bot@users.noreply.github.com>
- name: Checkout
uses: actions/checkout@v4

- name: Replace Boost macros
shell: bash
run: |
sed -i -e 's/BOOST_CHECK_SMALL\b/QL_CHECK_SMALL/g' test-suite/*.cpp
sed -i -e 's/BOOST_CHECK_CLOSE\b/QL_CHECK_CLOSE/g' test-suite/*.cpp
sed -i -e 's/BOOST_CHECK_CLOSE_FRACTION\b/QL_CHECK_CLOSE_FRACTION/g' test-suite/*.cpp

- name: Create Pull Request
uses: peter-evans/create-pull-request@v8
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: fix-boost-test-macros-${{ github.ref_name }}
delete-branch: true
commit-message: "Replace Boost macros that might not work with AAD types"
title: "Replace Boost macros that might not work with AAD types"
body: "Automated replacement of Boost test macros with QL equivalents."
Loading
Loading