generated from feelpp/feelpp-project
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* update antora #7 Remove unused files and directories, add missing files - Removed CTestCostData.txt and LastTest.log - Added new files for supplemental UI and pages - Updated antora configuration in modules/antora.yml - Updated generate-jupyter.sh script - Removed package.json and updated site.yml configuration - Updated VSCode setup instructions in vscode.adoc page - Renamed feelpp.adoc to antora.adoc in modules/ROOT/pages - Fixed minor mistakes in CMakeLists.txt, cmake.adoc, jupyter.adoc, and githubactions.adoc. * update cmake process #8 Update CMake process including new features This commit updates the CMake process to version 3.21.0 and includes new features such as the usage of CMakePresets.json with two possible presets: "default" and "install-local". It also updates the .gitignore file to remove docs/public/, adds jupyter/ to the ignored files, updates the project requirements, and fixes some bugs. Additionally, it includes new files (CMakePresets.json, .tests.laplacian, and .tests.toolbox) and updates the laplacian and toolbox files to include proper links. Finally, the changeset introduces a new set of electric simulation cases with 2D configuration files. * update repo with new feelpp-project #6 add dockerfile * update ci update repo with new feelpp-project #6 * rm docs/supplemental-ui update repo with new feelpp-project #6 * derivatives expressions interface need update #4 * update antora #7 add ref doc * update cmake process #8 * up docs update antora #7 code skip * update antora #7 modify titles * fix docker generation now generate feelpp/feelpp-tutorial-dev update repo with new feelpp-project #6 * update docs #7 code skip * update cmake process #8 minor mods in CMakeLists * no more antora in cmake update cmake process #8 * fix artifacts name in CI update repo with new feelpp-project #6 docs skip * up README update repo with new feelpp-project #6 code skip docs skip
- Loading branch information
Showing
53 changed files
with
8,233 additions
and
967 deletions.
There are no files selected for viewing
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,54 +1,131 @@ | ||
name: CI | ||
|
||
on: [push] | ||
on: | ||
push: | ||
branches: | ||
- '**' # Push events on all branches | ||
paths-ignore: | ||
- '.github/workflows/init.yml' | ||
tags: | ||
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 including semver | ||
|
||
jobs: | ||
|
||
build_docs: | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-22.04 | ||
name: Build, Install, Package documentation | ||
if: "!contains(github.event.head_commit.message, 'docs skip')" | ||
steps: | ||
- uses: buildkite/trigger-pipeline-action@v1.2.0 | ||
- uses: actions/checkout@v3 | ||
- name: Install credentials | ||
run: echo https://$GITHUB_OAUTH:@github.com > $HOME/.git-credentials | ||
env: | ||
BUILDKITE_API_ACCESS_TOKEN: ${{ secrets.BUILDKITE_API_ACCESS_TOKEN }} | ||
PIPELINE: "feelpp/feelpp-docs" | ||
COMMIT: "HEAD" | ||
BRANCH: "master" | ||
MESSAGE: ":github: Triggered from a GitHub Action by Tutorial-Dev Project" | ||
build_examples: | ||
runs-on: ubuntu-20.04 | ||
GITHUB_OAUTH: ${{ secrets.CR_PAT_WORKFLOW }} | ||
- name: Build | ||
run: | | ||
npm install | ||
npm run antora | ||
working-directory: docs | ||
- name: Deploy | ||
uses: JamesIves/github-pages-deploy-action@v4 | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
BRANCH: gh-pages # The branch the action should deploy to. | ||
FOLDER: public # The folder the action should deploy. | ||
|
||
|
||
build_code: | ||
runs-on: self-ubuntu-22.04 | ||
name: Build, Install, Package code | ||
if: "!contains(github.event.head_commit.message, 'code skip')" | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
lfs: true | ||
- name: feelpp | ||
run: | | ||
echo "deb https://dl.bintray.com/feelpp/ubuntu focal stable" | sudo tee -a /etc/apt/sources.list | ||
wget -qO - https://bintray.com/user/downloadSubjectPublicKey?username=bintray | sudo apt-key add - | ||
sudo apt update | ||
sudo apt install -y libfeelpp-dev feelpp-tools | ||
- name: antora | ||
recursive: true | ||
- | ||
name: Build | ||
run: | | ||
sudo npm i -g @antora/cli@2.3 @antora/site-generator-default@2.3 | ||
- name: Build Tutorial Dev | ||
cmake --preset default | ||
cmake --build --preset default | ||
- | ||
name: Check | ||
run: | | ||
mkdir build && cd build | ||
CXX=clang++-9 cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=./install .. | ||
make | ||
make install | ||
- name: Ctest | ||
run: | | ||
ctest -R . | ||
working-directory: build | ||
- name: Package | ||
ctest --preset default | ||
env: | ||
OMPI_ALLOW_RUN_AS_ROOT: 1 | ||
OMPI_ALLOW_RUN_AS_ROOT_CONFIRM: 1 | ||
- | ||
name: Package | ||
run: | | ||
make package | ||
mkdir artifact && cp feelpp-tutorial-dev*.tar.gz artifact | ||
ls -l artifact | ||
tar tzvf feelpp-tutorial-dev*.tar.gz | ||
working-directory: build | ||
# - name: Upload artifact | ||
# uses: actions/upload-artifact@v1.0.0 | ||
# with: | ||
# # Artifact name | ||
# name: Tutorial Dev-${{ runner.os }} | ||
# # Directory containing files to upload | ||
# path: build/install/ | ||
cmake --build --preset default -t package | ||
- name: Upload Artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
# Artifact name | ||
name: feelpp-tutorial-dev-artifacts | ||
# Directory containing files to upload | ||
path: build/default/assets/feelpp-tutorial-dev-* | ||
- name: Release | ||
if: startsWith(github.ref ,'refs/tags/v') | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
files: build/default/assets/feelpp-tutorial-dev-* | ||
draft: false | ||
prerelease: ${{ contains(github.ref, 'alpha') || contains(github.ref, 'beta') || contains(github.ref, 'rc')}} | ||
name: Release ${{ github.ref_name }} | ||
generate_release_notes: true | ||
tag_name: ${{ github.ref }} | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
deliver: | ||
runs-on: self-ubuntu-22.04 | ||
needs: build_code | ||
name: Build docker, tag and push | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
lfs: true | ||
submodules: 'recursive' | ||
- name: Download | ||
uses: actions/download-artifact@v3 | ||
with: | ||
# Artifact name | ||
name: feelpp-tutorial-dev-artifacts | ||
path: artifacts/ | ||
- | ||
name: Docker meta | ||
id: meta | ||
uses: docker/metadata-action@v4 | ||
with: | ||
images: | | ||
ghcr.io/feelpp/feelpp-tutorial-dev | ||
tags: | | ||
type=ref,event=branch | ||
type=ref,event=pr | ||
type=semver,pattern={{version}} | ||
type=semver,pattern={{major}}.{{minor}} | ||
- | ||
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.CR_PAT }} | ||
- | ||
name: Build container image | ||
uses: docker/build-push-action@v4 | ||
with: | ||
context: artifacts | ||
push: ${{ github.event_name != 'pull_request' }} | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} | ||
file: ./Dockerfile | ||
|
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
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.