forked from lballabio/QuantLib-SWIG
-
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
197 changed files
with
7,082 additions
and
3,219 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
./autogen.sh | ||
./configure CC=clang CXX=clang++ CXXFLAGS='-O2' | ||
make -C CSharp |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
make -C CSharp check |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/bash | ||
set -e |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
./autogen.sh | ||
./configure --disable-java-finalizer --enable-java-autocloseable \ | ||
--with-jdk-include=/usr/lib/jvm/default-java/include \ | ||
--with-jdk-system-include=/usr/lib/jvm/default-java/include/linux \ | ||
CC=clang CXX=clang++ CXXFLAGS='-O2' | ||
make -C Java |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
make -C Java check |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/bash | ||
set -e |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
./autogen.sh | ||
./configure --with-jdk-include=/usr/lib/jvm/default-java/include \ | ||
--with-jdk-system-include=/usr/lib/jvm/default-java/include/linux \ | ||
CC=clang CXX=clang++ CXXFLAGS='-O2' | ||
make -C Java |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
make -C Java check |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/bash | ||
set -e |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
./autogen.sh | ||
./configure PYTHON=/usr/bin/python3 CC=clang CXX=clang++ CXXFLAGS='-O1' | ||
make -C Python | ||
make -C Python wheel |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
make -C Python check | ||
|
||
. .venv/bin/activate | ||
for i in Python/examples/*.py | ||
do | ||
echo "$i" | ||
python "$i" || break -1 | ||
done |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
python3 -m venv .venv | ||
. .venv/bin/activate | ||
pip install Python/dist/QuantLib-*.whl | ||
grep -v QuantLib binder/requirements.txt > Python/examples/requirements.txt | ||
pip install -r Python/examples/requirements.txt |
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,10 +1,10 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
mkdir -p ~/.R | ||
echo 'CC=clang' > ~/.R/Makevars | ||
echo 'CXX=clang++' >> ~/.R/Makevars | ||
|
||
./autogen.sh \ | ||
&& ./configure CXXFLAGS='-O0' \ | ||
&& make -C R \ | ||
&& make -C R check | ||
./autogen.sh | ||
./configure CXXFLAGS='-O0' | ||
make -C R |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
echo Execute Scripts in demo folder | ||
for fn in ./R/demo/*.R | ||
do | ||
echo $fn | ||
Rscript "$fn" || break -1 | ||
done |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
R CMD INSTALL ./R.Rcheck/QuantLib |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
./autogen.sh | ||
./configure --with-jdk-include=/usr/lib/jvm/default-java/include \ | ||
--with-jdk-system-include=/usr/lib/jvm/default-java/include/linux CXXFLAGS='-O2' | ||
make -C Java |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
make -C Scala check |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/bash | ||
set -e |
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 |
---|---|---|
@@ -0,0 +1,92 @@ | ||
name: Build quantlib-swig-devenv Docker images | ||
on: | ||
schedule: | ||
- cron: '0 0 * * 6' | ||
workflow_dispatch: | ||
jobs: | ||
docker-images-base: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Checkout latest QuantLib master | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: lballabio/QuantLib | ||
path: dockerfiles/QuantLib | ||
- name: Build Docker images | ||
working-directory: dockerfiles | ||
run: | | ||
rm -rf QuantLib/.git | ||
docker build -f ci.base.Dockerfile --build-arg tag=rolling -t ghcr.io/lballabio/quantlib-swig-devenv:base . | ||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.GHCR_PAT }} | ||
- name: Push Docker images | ||
run: | | ||
docker push ghcr.io/lballabio/quantlib-swig-devenv:base | ||
docker-images-ql: | ||
runs-on: ubuntu-20.04 | ||
needs: docker-images-base | ||
strategy: | ||
matrix: | ||
tag: [default, threadsafe] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Build Docker images | ||
working-directory: dockerfiles | ||
run: | | ||
docker build -f ci.${{ matrix.tag }}.Dockerfile -t ghcr.io/lballabio/quantlib-swig-devenv:${{ matrix.tag }} . | ||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.GHCR_PAT }} | ||
- name: Push Docker images | ||
run: | | ||
docker push ghcr.io/lballabio/quantlib-swig-devenv:${{ matrix.tag }} | ||
docker-images-base-languages: | ||
runs-on: ubuntu-20.04 | ||
needs: docker-images-ql | ||
strategy: | ||
matrix: | ||
lang: [python, csharp, java, r] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Build Docker images | ||
working-directory: dockerfiles | ||
run: | | ||
docker build -f ci.${{ matrix.lang }}.Dockerfile -t ghcr.io/lballabio/quantlib-swig-devenv:${{ matrix.lang }} . | ||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.GHCR_PAT }} | ||
- name: Push Docker images | ||
run: | | ||
docker push ghcr.io/lballabio/quantlib-swig-devenv:${{ matrix.lang }} | ||
docker-images-dependent-languages: | ||
runs-on: ubuntu-20.04 | ||
needs: docker-images-base-languages | ||
strategy: | ||
matrix: | ||
lang: [scala] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Build Docker images | ||
working-directory: dockerfiles | ||
run: | | ||
docker build -f ci.${{ matrix.lang }}.Dockerfile -t ghcr.io/lballabio/quantlib-swig-devenv:${{ matrix.lang }} . | ||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.GHCR_PAT }} | ||
- name: Push Docker images | ||
run: | | ||
docker push ghcr.io/lballabio/quantlib-swig-devenv:${{ matrix.lang }} |
This file was deleted.
Oops, something went wrong.
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,15 +1,34 @@ | ||
name: Linux build | ||
on: [push, pull_request, workflow_dispatch] | ||
on: | ||
push: | ||
pull_request: | ||
schedule: | ||
- cron: '0 0 * * 0' | ||
workflow_dispatch: | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
language: [python3, java, csharp, r, scala] | ||
include: | ||
- language: python | ||
- language: java | ||
config: -old | ||
- language: java | ||
config: -new | ||
- language: csharp | ||
- language: r | ||
- language: scala | ||
container: ghcr.io/lballabio/quantlib-swig-devenv:${{ matrix.language }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Build and check | ||
- uses: actions/checkout@v4 | ||
- name: Build | ||
run: | | ||
./.build/${{ matrix.language }}.build | ||
./.ci/${{ matrix.language }}${{ matrix.config }}.build | ||
- name: Install | ||
run: | | ||
./.ci/${{ matrix.language }}${{ matrix.config }}.install | ||
- name: Check | ||
run: | | ||
./.ci/${{ matrix.language }}${{ matrix.config }}.check |
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.