Skip to content

1.5 inverse Jacobian matrix for the Czarny mapping #221

1.5 inverse Jacobian matrix for the Czarny mapping

1.5 inverse Jacobian matrix for the Czarny mapping #221

Workflow file for this run

name: docker
on:
push:
branches:
- 'main'
pull_request:
jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Build and push to tag
uses: docker/build-push-action@v3
with:
context: ./docker/voicexx_env
cache-from: type=registry,ref=ghcr.io/gyselax/voicexx_env:latest
pull: true
push: true
tags: ghcr.io/gyselax/voicexx_env:${{ github.sha }}
-
name: Build and push latest
if: github.event_name == 'push' && github.ref_name == 'main'
uses: docker/build-push-action@v3
with:
context: ./docker/voicexx_env
cache-from: type=registry,ref=ghcr.io/gyselax/voicexx_env:latest
pull: true
push: true
tags: ghcr.io/gyselax/voicexx_env:latest
tests:
runs-on: ubuntu-latest
needs: docker
container:
image: ghcr.io/gyselax/voicexx_env:${{ github.sha }}
options: --user root
steps:
-
name: Checkout gyselalibxx
uses: actions/checkout@v3
with: { submodules: recursive }
-
name: Run tests
run: |
mkdir build
cd build
cmake -DCMAKE_CXX_FLAGS=-Wall -DBUILD_BENCHMARKS=ON -DKokkos_ENABLE_DEPRECATED_CODE_3=OFF -DKokkos_ENABLE_DEPRECATION_WARNINGS=OFF ..
make -j 2 VERBOSE=1
ctest --output-on-failure --timeout 5 -LE test_on_Release_only
tests_Release:
runs-on: ubuntu-latest
needs: docker
container:
image: ghcr.io/gyselax/voicexx_env:${{ github.sha }}
options: --user root
steps:
-
name: Checkout gyselalibxx
uses: actions/checkout@v3
with: { submodules: recursive }
-
name: Run tests
run: |
mkdir build
cd build
cmake -DCMAKE_CXX_FLAGS=-Wall -DBUILD_BENCHMARKS=ON -DCMAKE_BUILD_TYPE=Release -DKokkos_ENABLE_DEPRECATED_CODE_3=OFF -DKokkos_ENABLE_DEPRECATION_WARNINGS=OFF ..
make -j 2 VERBOSE=1
ctest --output-on-failure --timeout 5
Docs:
if: github.event_name == 'push' && github.ref_name == 'main'
needs: docker
runs-on: ubuntu-latest
container:
image: ghcr.io/gyselax/voicexx_env:${{ github.sha }}
options: --user root
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
path: code_branch
submodules: recursive
- name: Checkout documentation
uses: actions/checkout@v3
with:
ref: documentation
path: doc_branch
- name: Generate docs
run: |
mkdir build
cd build
cmake -DBUILD_DOCUMENTATION=ON ../code_branch
make doc
shell: bash
- name: Update documentation
run: |
cd doc_branch
git rm -r *
cp -r ../build/docs/html/* .
git add .
git config --global user.name "GitHub CI Documentation builder"
git config --global user.email "[email protected]"
git commit -m "Update docs" || true
git push
shell: bash
env:
GH_TOKEN: ${{ github.token }}