Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SpiceQL
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
aflab
astrogeology
SpiceQL
Commits
db9017b6
Unverified
Commit
db9017b6
authored
1 year ago
by
Kelvin Rodriguez
Committed by
GitHub
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
updated ci_testing
parent
05642bec
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.github/workflows/ci_testing.yml
+141
-0
141 additions, 0 deletions
.github/workflows/ci_testing.yml
.github/workflows/ctests.yml
+0
-149
0 additions, 149 deletions
.github/workflows/ctests.yml
with
141 additions
and
149 deletions
.github/workflows/ci_testing.yml
0 → 100644
+
141
−
0
View file @
db9017b6
name
:
CMake
on
:
[
push
,
pull_request
]
env
:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE
:
Release
jobs
:
build-library
:
runs-on
:
${{ matrix.os }}
strategy
:
matrix
:
os
:
[
ubuntu-latest
,
macos-latest
]
python-version
:
[
"
3.8"
,
"
3.9"
,
"
3.10"
,
"
3.11"
]
defaults
:
run
:
shell
:
bash -l {0}
env
:
SSPICE_DEBUG
:
y
steps
:
-
uses
:
actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
with
:
submodules
:
true
-
uses
:
conda-incubator/setup-miniconda@3b0f2504dd76ef23b6d31f291f4913fb60ab5ff3
with
:
miniforge-version
:
latest
use-mamba
:
true
channels
:
conda-forge
activate-environment
:
ale
environment-file
:
environment.yml
auto-activate-base
:
false
auto-update-conda
:
true
python-version
:
${{ matrix.python-version }}
-
name
:
Check build environment
run
:
|
conda list
-
name
:
Configure CMake
working-directory
:
${{github.workspace}}/build
run
:
cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DSPICEQL_BUILD_DOCS=OFF -DCMAKE_INSTALL_PREFIX=${{github.workspace}}/install
-
name
:
Build
working-directory
:
${{github.workspace}}/build
# Execute the build. You can specify a specific target with "--target <NAME>"
run
:
|
cmake --build . --config $BUILD_TYPE
-
name
:
Test
working-directory
:
${{github.workspace}}/build
# Execute tests defined by the CMake configuration.
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
run
:
ctest -VV -C $BUILD_TYPE
-
name
:
Install
working-directory
:
${{github.workspace}}/build
# Execute the install. You can specify a specific target with "--target <NAME>"
run
:
|
cmake --install . --config $BUILD_TYPE
-
name
:
Check install
working-directory
:
${{github.workspace}}/install
# Check that the library installed properly
run
:
|
if [ "$RUNNER_OS" == "macOS" ]; then
test -e lib/libSpiceQL.dylib
elif [ "$RUNNER_OS" == "Linux" ]; then
test -e lib/libSpiceQL.so
fi
test -e include/SpiceQL/spiceql.h
rm -rf ${{github.workspace}}/build
python -c "import pyspiceql"
# compair all json files against the schema
-
name
:
check json files
working-directory
:
${{github.workspace}}/SpiceQL/db/schema
run
:
|
for file in *.json;
do
pwd
jsonschema --instance "$file" spiceMissionSchmea.schema.json
done;
build-docs
:
runs-on
:
ubuntu-latest
defaults
:
run
:
shell
:
bash -l {0}
steps
:
-
uses
:
actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
-
uses
:
conda-incubator/setup-miniconda@3b0f2504dd76ef23b6d31f291f4913fb60ab5ff3
with
:
miniconda-version
:
"
latest"
activate-environment
:
spiceql
environment-file
:
environment.yml
auto-activate-base
:
false
auto-update-conda
:
true
-
name
:
Conda info
run
:
|
conda info
conda list
-
name
:
Create Build Environment
# Some projects don't allow in-source building, so create separate build and install
# directorie; we'll use them as our working directories for subsequent commands.
run
:
|
cmake -E make_directory ${{github.workspace}}/build
cmake -E make_directory ${{github.workspace}}/install
-
name
:
Configure CMake
working-directory
:
${{github.workspace}}/build
run
:
cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DSPICEQL_BUILD_LIB=OFF -DCMAKE_INSTALL_PREFIX=${{github.workspace}}/install
-
name
:
Build
working-directory
:
${{github.workspace}}/build
# Execute the build.
run
:
|
cmake --build . --config $BUILD_TYPE
-
name
:
Check Build Docs
working-directory
:
${{github.workspace}}/build/docs/sphinx
# Check for the built docs
run
:
|
test -e index.html
test -e reference/api.html
test -e reference/tutorials.html
-
name
:
Install Docs
working-directory
:
${{github.workspace}}/build
# Install the build.
run
:
|
cmake --install . --config $BUILD_TYPE
-
name
:
Check Install Docs
working-directory
:
${{github.workspace}}/install
# Check for the built docs
run
:
|
test -e share/doc/SpiceQL/sphinx/index.html
test -e share/doc/SpiceQL/sphinx/reference/api.html
test -e share/doc/SpiceQL/sphinx/reference/tutorials.html
This diff is collapsed.
Click to expand it.
.github/workflows/ctests.yml
deleted
100644 → 0
+
0
−
149
View file @
05642bec
name
:
CMake
on
:
[
push
,
pull_request
]
env
:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE
:
Release
jobs
:
build-library
:
runs-on
:
${{ matrix.os }}
strategy
:
matrix
:
os
:
[
ubuntu-latest
,
macos-latest
]
defaults
:
run
:
shell
:
bash -l {0}
env
:
SSPICE_DEBUG
:
y
steps
:
-
uses
:
actions/checkout@v2
-
uses
:
conda-incubator/setup-miniconda@v2
with
:
miniconda-version
:
"
latest"
activate-environment
:
spiceql
environment-file
:
environment.yml
auto-activate-base
:
false
auto-update-conda
:
true
-
name
:
Conda info
run
:
|
conda info
conda list
-
name
:
Checkout submodules
uses
:
snickerbockers/submodules-init@v4
-
name
:
Create Build Environment
# Some projects don't allow in-source building, so create separate build and install
# directorie; we'll use them as our working directories for subsequent commands.
run
:
|
cmake -E make_directory ${{github.workspace}}/build
cmake -E make_directory ${{github.workspace}}/install
-
name
:
Configure CMake
working-directory
:
${{github.workspace}}/build
run
:
cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCSpice_DIR=$CONDA/envs/spiceql/lib/cmake/cspice/ -Dfmt_DIR=$CONDA/envs/spiceql/lib/cmake/fmt/ -DSPICEQL_BUILD_DOCS=OFF -DCMAKE_INSTALL_PREFIX=${{github.workspace}}/install
-
name
:
Build
working-directory
:
${{github.workspace}}/build
# Execute the build. You can specify a specific target with "--target <NAME>"
run
:
|
cmake --build . --config $BUILD_TYPE
-
name
:
Test
working-directory
:
${{github.workspace}}/build
# Execute tests defined by the CMake configuration.
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
run
:
ctest -VV -C $BUILD_TYPE
-
name
:
Install
working-directory
:
${{github.workspace}}/build
# Execute the install. You can specify a specific target with "--target <NAME>"
run
:
|
cmake --install . --config $BUILD_TYPE
-
name
:
Check install
working-directory
:
${{github.workspace}}/install
# Check that the library installed properly
run
:
|
if [ "$RUNNER_OS" == "macOS" ]; then
test -e lib/libSpiceQL.dylib
elif [ "$RUNNER_OS" == "Linux" ]; then
test -e lib/libSpiceQL.so
fi
test -e include/SpiceQL/spiceql.h
rm -rf ${{github.workspace}}/build
python -c "import pyspiceql"
# compair all json files against the schema
-
name
:
check json files
working-directory
:
${{github.workspace}}/SpiceQL/db/schema
run
:
|
for file in *.json;
do
pwd
jsonschema --instance "$file" spiceMissionSchmea.schema.json
done;
build-docs
:
runs-on
:
ubuntu-latest
defaults
:
run
:
shell
:
bash -l {0}
steps
:
-
uses
:
actions/checkout@v2
-
uses
:
conda-incubator/setup-miniconda@v2
with
:
miniconda-version
:
"
latest"
activate-environment
:
spiceql
environment-file
:
environment.yml
auto-activate-base
:
false
auto-update-conda
:
true
-
name
:
Conda info
run
:
|
conda info
conda list
-
name
:
Create Build Environment
# Some projects don't allow in-source building, so create separate build and install
# directorie; we'll use them as our working directories for subsequent commands.
run
:
|
cmake -E make_directory ${{github.workspace}}/build
cmake -E make_directory ${{github.workspace}}/install
-
name
:
Configure CMake
working-directory
:
${{github.workspace}}/build
run
:
cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DSPICEQL_BUILD_LIB=OFF -DCMAKE_INSTALL_PREFIX=${{github.workspace}}/install
-
name
:
Build
working-directory
:
${{github.workspace}}/build
# Execute the build.
run
:
|
cmake --build . --config $BUILD_TYPE
-
name
:
Check Build Docs
working-directory
:
${{github.workspace}}/build/docs/sphinx
# Check for the built docs
run
:
|
test -e index.html
test -e reference/api.html
test -e reference/tutorials.html
-
name
:
Install Docs
working-directory
:
${{github.workspace}}/build
# Install the build.
run
:
|
cmake --install . --config $BUILD_TYPE
-
name
:
Check Install Docs
working-directory
:
${{github.workspace}}/install
# Check for the built docs
run
:
|
test -e share/doc/SpiceQL/sphinx/index.html
test -e share/doc/SpiceQL/sphinx/reference/api.html
test -e share/doc/SpiceQL/sphinx/reference/tutorials.html
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment