Skip to content

Commit

Permalink
Merge pull request #53 from Pressio/simplify_things
Browse files Browse the repository at this point in the history
Simplify things
  • Loading branch information
fnrizzi authored Feb 13, 2025
2 parents 2972c27 + c277d4d commit 6a6766d
Show file tree
Hide file tree
Showing 2,208 changed files with 39 additions and 137 deletions.
24 changes: 3 additions & 21 deletions .github/workflows/test-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:

env: # environment variables available to all steps
CXX: ${{ matrix.config.cxx }}
APT_PACKAGES: python3 pip python-is-python3 g++ clang gpg wget
APT_PACKAGES: python3 pip python-is-python3 g++ clang gpg wget cmake
PIP_PACKAGES: pytest build numpy scipy matplotlib PyYAML GitPython
SRC_HOME: /home/runner/work/pressio-tutorials/pressio-tutorials
BUILD_DIR: /home/runner/work/build/pressio-tutorials
Expand All @@ -46,19 +46,7 @@ jobs:
- name: Install packages
run: |
sudo apt-get update
sudo apt-get install -y --install-suggests $APT_PACKAGES
- name: Install CMake
run: |
export CMAKE_KEYRING=/usr/share/keyrings/kitware-archive-keyring.gpg
wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null \
| gpg --dearmor - \
| sudo tee $CMAKE_KEYRING >/dev/null
echo "deb [signed-by=$CMAKE_KEYRING] https://apt.kitware.com/ubuntu/ focal main" \
| sudo tee /etc/apt/sources.list.d/kitware.list >/dev/null
sudo apt-get update
rm $CMAKE_KEYRING
sudo apt-get install -y kitware-archive-keyring cmake
sudo apt-get install -y $APT_PACKAGES
- name: Check environment
run: |
Expand Down Expand Up @@ -90,20 +78,14 @@ jobs:
cmake \
-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \
-DCMAKE_BUILD_TYPE:STRING=${{ matrix.config.mode }} \
-DPRESSIOTUTORIALS_ENABLE_TESTS=ON \
-B $BUILD_DIR -S $SRC_HOME
- name: Build tests
run: |
export NUM_CPU=$(grep -c processor /proc/cpuinfo)
cmake --build $BUILD_DIR -j $NUM_CPU
- name: Run tests
run: |
cd $BUILD_DIR
ctest
- name: Run demos
- name: Run tutorials
run: |
cd $BUILD_DIR/ode-using-eigen-types
bash runall_for_ci.sh
Expand Down
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,3 @@ set(CMAKE_CXX_EXTENSIONS OFF)
enable_testing()
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/nonlinearsolvers-using-eigen-types)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/ode-using-eigen-types)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/end-to-end-roms)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
Loading

0 comments on commit 6a6766d

Please sign in to comment.