Skip to content

Commit

Permalink
[GHA] clean-up more disk space as we go
Browse files Browse the repository at this point in the history
The RelWithDebugInfo job is still nearly running out of disk space
though.
  • Loading branch information
KrisThielemans committed Feb 16, 2024
1 parent 79a1e83 commit ba98628
Showing 1 changed file with 24 additions and 8 deletions.
32 changes: 24 additions & 8 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ jobs:
sudo apt install libinsighttoolkit5-dev
fi
# free up some disk space
sudo apt clean
apt autoremove --purge && sudo apt clean
PYTHON_EXECUTABLE=$(which python3)
;;
(macOS*)
Expand Down Expand Up @@ -255,6 +255,7 @@ jobs:
cmake .. -DCMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX} ${extra_args}
cmake --build . --target install --config Release
cd ../..
rm -rf parallelproj
fi
# Install ROOT (warning: currently only valid on Ubuntu)
Expand Down Expand Up @@ -362,7 +363,7 @@ jobs:
# execute tests
ctest --output-on-failure -C ${BUILD_TYPE} ${EXCLUDE}
- name: examples
- name: C++ examples with STIR_LOCAL
shell: bash
run: |
set -ex;
Expand All @@ -384,20 +385,30 @@ jobs:
${EXE_LOC}/demo4_obj_fun demo4_obj_fun.par
${EXE_LOC}/demo5_line_search demo5_line_search.par
- name: remove build
shell: bash
# remove to create some disk space
run: |
set -x
cd ${GITHUB_WORKSPACE}
df -h .
rm -rf ./build
df -h .
- name: C++ examples with installed STIR
shell: bash
run: |
set -ex;
# build and run C++/using_installed_STIR
PATH=${CMAKE_INSTALL_PREFIX}/bin:$PATH
cd ${GITHUB_WORKSPACE}/examples/C++/using_installed_STIR
cmake -S . -B build/ -DCMAKE_INSTALL_PREFIX:PATH=${CMAKE_INSTALL_PREFIX}
cmake --build build/ --config Release --target install
# run demo
demo_create_image
# just check if its output makes sense
list_image_info test.hv
- name: remove build
shell: bash
# remove to create some disk space
run:
rm -rf cd ${GITHUB_WORKSPACE}/build
rm -rf build
- name: recon_test_pack
shell: bash
Expand Down Expand Up @@ -433,6 +444,11 @@ jobs:
${{ github.workspace }}/recon_test_pack/**/my_*s
retention-days: 7

- name: remove recon_test_pack
shell: bash
run: |
rm -rf ${GITHUB_WORKSPACE}/recon_test_pack
- name: Python
shell: bash
run: |
Expand Down

0 comments on commit ba98628

Please sign in to comment.