forked from lanl/tardigrade-micromorphic-element
-
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.
Merge pull request #1 from UCBoulder/maint/enable-github-actions
Maint/enable GitHub actions
- Loading branch information
Showing
6 changed files
with
114 additions
and
7 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 |
---|---|---|
@@ -0,0 +1,62 @@ | ||
name: Tests on pull request | ||
run-name: ${{ github.actor }} is testing a pull request | ||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- edited | ||
- synchronize | ||
branches: | ||
- dev | ||
- main | ||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
# Set fail-fast to false to ensure that feedback is delivered for all matrix combinations. Consider changing this to true when your workflow is stable. | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest] | ||
build_type: [Release] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: MiniConda setup | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
miniforge-variant: Mambaforge | ||
channels: conda-forge,defaults | ||
channel-priority: true | ||
auto-activate-base: false | ||
activate-environment: "test-environment" | ||
- name: check solution | ||
run: | | ||
conda env export | ||
- name: Set reusable strings | ||
id: strings | ||
shell: bash | ||
run: | | ||
echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT" | ||
echo "environment-file=${{ github.workspace }}/reduced_environment.txt" >> "$GITHUB_OUTPUT" | ||
echo "moose-dir=${{ github.workspace }}/moose-dir" >> "$GITHUB_OUTPUT" | ||
- name: Conda environment | ||
shell: bash -el {0} | ||
run: | | ||
mamba install --file ${{ steps.strings.outputs.environment-file }} --yes --channel conda-forge | ||
- name: Build | ||
shell: bash -el {0} | ||
run: | | ||
mkdir build | ||
cd build | ||
cmake .. -DTARDIGRADE_MICROMORPHIC_ELEMENT_BUILD_PYTHON_BINDINGS=OFF | ||
make | ||
- name: Test | ||
shell: bash -el {0} | ||
# working-directory: ${{ steps.strings.outputs.build-output-dir }} | ||
run: | | ||
conda activate test-environment | ||
cd build | ||
ctest |
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,22 @@ | ||
# Reference: https://github.com/softprops/action-gh-release | ||
name: Release on new tags | ||
|
||
on: | ||
push: | ||
tags: | ||
- "[0-9]+.[0-9]+.[0-9]+" | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
lfs: 'true' | ||
fetch-depth: 0 | ||
- name: Release | ||
uses: softprops/action-gh-release@v1 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
boost>=1.59 | ||
breathe>=4.30.0 | ||
cmake>=3.18 | ||
compilers | ||
doxygen>=1.9 | ||
eigen>=3.3.7 | ||
python | ||
setuptools_scm>=6.2 | ||
sphinx>=3.0.4 | ||
sphinx_rtd_theme>=0.4.3 | ||
sphinxcontrib-bibtex |