Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
tsid
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
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Stack Of Tasks
tsid
Commits
3c076941
Commit
3c076941
authored
2 years ago
by
Fabian Schramm
Browse files
Options
Downloads
Patches
Plain Diff
start ci with github actions for linux and osx using conda
parent
40cf1cef
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#23143
passed with warnings
2 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.github/workflows/ci-linux-osx-conda.yml
+98
-0
98 additions, 0 deletions
.github/workflows/ci-linux-osx-conda.yml
with
98 additions
and
0 deletions
.github/workflows/ci-linux-osx-conda.yml
0 → 100644
+
98
−
0
View file @
3c076941
name
:
CI - Linux/OSX - Conda
on
:
push
:
pull_request
:
jobs
:
build-with-conda
:
name
:
'
[conda:${{
matrix.os
}}:${{
matrix.build_type
}}]'
runs-on
:
${{ matrix.os }}
strategy
:
fail-fast
:
false
matrix
:
build_type
:
[
Release
,
Debug
]
name
:
[
ubuntu-latest
,
macos-latest
]
steps
:
-
uses
:
actions/checkout@v2
-
uses
:
conda-incubator/setup-miniconda@v2
with
:
miniforge-variant
:
Mambaforge
miniforge-version
:
latest
channels
:
conda-forge
python-version
:
"
3.10"
activate-environment
:
tsid
-
name
:
Install dependencies [Conda]
shell
:
bash -l {0}
run
:
|
# Workaround for https://github.com/conda-incubator/setup-miniconda/issues/186
conda config --remove channels defaults
# Compilation related dependencies
mamba install cmake compilers make pkg-config doxygen ninja graphviz
# Main dependencies
mamba install tsid --only-deps
mamba install proxsuite osqp-eigen
-
name
:
Activate ccache [Conda]
uses
:
hendrikmuhs/ccache-action@v1.2
with
:
key
:
${{ matrix.os }}-${{ matrix.type }}-${{ matrix.cxx_std }}
max-size
:
1G
-
name
:
Print environment [Conda]
shell
:
bash -l {0}
run
:
|
conda info
mamba list
env
-
name
:
Configure [Conda]
shell
:
bash -l {0}
run
:
|
echo $(whereis ccache)
echo $(which ccache)
git submodule update --init
mkdir build
cd build
cmake .. -GNinja -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_STANDARD=${{ matrix.cxx_std }} -DCMAKE_INSTALL_PREFIX=${CONDA_PREFIX} -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DBUILD_PYTHON_INTERFACE:BOOL=ON -DPYTHON_EXECUTABLE=$(which python3) -DINSTALL_DOCUMENTATION:BOOL=ON -DBUILD_WITH_PROXQP:BOOL=ON -DBUILD_WITH_OSQP:BOOL=ON
-
name
:
Build [Conda]
shell
:
bash -l {0}
run
:
|
cd build
cmake --build . --config ${{ matrix.build_type }} -v
-
name
:
Build documentation [Conda]
shell
:
bash -l {0}
run
:
|
cd build
cmake --build . --config ${{ matrix.build_type }} --target doc
-
name
:
Install [Conda]
shell
:
bash -l {0}
run
:
|
cd build
cmake --install . --config ${{ matrix.build_type }}
-
name
:
Test [Conda]
shell
:
bash -l {0}
run
:
|
find $CONDA_PREFIX -name tsid*
python -c "import tsid"
cd build
ctest --output-on-failure -C ${{ matrix.build_type }}
-
name
:
Uninstall [Conda]
shell
:
bash -l {0}
run
:
|
cd build
cmake --build . --config ${{ matrix.build_type }} --target uninstall
-
name
:
Display ccache statistics [Conda]
shell
:
bash -l {0}
run
:
|
echo $(ccache -s)
\ 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