Skip to content

Commit

Permalink
Merge branch 'release-2.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
yomichi committed Mar 22, 2024
2 parents d39049d + 5ab458f commit 61b11cc
Show file tree
Hide file tree
Showing 293 changed files with 32,738 additions and 2,189 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/deploy_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,29 +11,30 @@ on:

jobs:
deploy:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Inject slug/short variables
uses: rlespinasse/github-slug-action@v3.x
uses: rlespinasse/github-slug-action@v4.x

- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
path: main

- name: Checkout gh-pages
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
ref: gh-pages
path: gh-pages

- name: Set up Python
uses: actions/setup-python@v1
uses: actions/setup-python@v5
with:
python-version: 3.8

- name: Prepare LaTeX env
run: |
sudo apt update
sudo apt install \
texlive-latex-recommended texlive-latex-extra \
texlive-lang-japanese texlive-fonts-recommended texlive-fonts-extra latexmk
Expand All @@ -42,7 +43,7 @@ jobs:
- name: Install python packages
run: |
python -m pip install --upgrade pip
pip install sphinx
pip install sphinx sphinxcontrib-spelling
- name: Build
run: |
Expand Down
61 changes: 56 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,33 +4,46 @@ on: [push]

jobs:
build:
runs-on: ubuntu-20.04
name: "os: ${{ matrix.os }}, python: ${{ matrix.python-version }}"
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: ["ubuntu-20.04", "ubuntu-22.04"]
python-version: ["3.6", "3.12"]
exclude:
- os: "ubuntu-22.04"
python-version: "3.6"
fail-fast: false

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

- name: Setup Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: ${{ matrix.python-version }}

- name: apt
run: |
sudo apt update
sudo apt install \
gcc gfortran cmake wget liblapack-dev \
openmpi-bin libopenmpi-dev
- name: pip install
run: |
python -m pip install -U pip
python -m pip install numpy scipy toml
python -m pip install typing_extensions
- name: make workspace
run: cmake -E make_directory ${{runner.workspace}}/build

- name: cmake
working-directory: ${{runner.workspace}}/build
shell: bash
run: cmake -DCMAKE_VERBOSE_MAKEFILE=1 $GITHUB_WORKSPACE
run: cmake -DPYTHON_EXECUTABLE=$(which python3) -DCMAKE_INSTALL_PREFIX=${{runner.workspace}}/usr -DCMAKE_VERBOSE_MAKEFILE=1 $GITHUB_WORKSPACE

- name: build
working-directory: ${{runner.workspace}}/build
Expand All @@ -41,3 +54,41 @@ jobs:
working-directory: ${{runner.workspace}}/build
shell: bash
run: ctest -V

- name: install
working-directory: ${{runner.workspace}}/build
shell: bash
run: make install


docs:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.8

- name: Prepare LaTeX env
run: |
sudo apt update
sudo apt install \
texlive-latex-recommended texlive-latex-extra \
texlive-lang-japanese texlive-fonts-recommended texlive-fonts-extra latexmk
kanji-config-updmap-sys ipaex
- name: Install python packages
run: |
python -m pip install --upgrade pip
pip install sphinx sphinxcontrib-spelling
- name: Build
run: |
cd ${GITHUB_WORKSPACE}
cmake -E make_directory build
cd build
cmake -DDocument=ON ../
make doc
Loading

0 comments on commit 61b11cc

Please sign in to comment.