Skip to content

Commit

Permalink
Clean package manager caches in CI (#305)
Browse files Browse the repository at this point in the history
* Clean package manager caches in CI

* remove cpack docker prune

* Apply suggestions from code review

* Apply suggestions from code review

* Update .github/workflows/cpack.yml

- disable removing large packages and swap storage to see if that fixes the jobs losing communication with server

* Update ubuntu-focal workflow

- disable debug flags in code coverage run
  • Loading branch information
jrmadsen committed Sep 26, 2023
1 parent 1216fd9 commit 0d84a35
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 5 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/cpack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,16 @@ jobs:
rocm-version: "5.6"

steps:
- name: Free Disk Space
uses: jlumbroso/[email protected]
with:
tool-cache: false
android: true
dotnet: true
haskell: true
large-packages: false
swap-storage: false

- uses: actions/checkout@v3
with:
submodules: recursive
Expand Down
24 changes: 19 additions & 5 deletions .github/workflows/ubuntu-focal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,11 @@ jobs:
python3 -m pip install numpy &&
python3 -m pip install perfetto &&
python3 -m pip install 'cmake==3.16.3' &&
for i in 6 7 8 9 10; do /opt/conda/envs/py3.${i}/bin/python -m pip install numpy perfetto dataclasses; done
for i in 6 7 8 9 10; do /opt/conda/envs/py3.${i}/bin/python -m pip install numpy perfetto dataclasses; done &&
apt-get -y --purge autoremove &&
apt-get -y clean &&
/opt/conda/bin/conda clean -y -a
- name: Test Environment Modules
timeout-minutes: 15
Expand Down Expand Up @@ -269,7 +273,11 @@ jobs:
apt-get install -y build-essential m4 autoconf libtool python3-pip clang libomp-dev ${{ matrix.compiler }} libudev1 libnuma1 rocm-dev rocm-utils rocm-smi-lib roctracer-dev rocprofiler-dev rccl-dev hip-base hsa-amd-aqlprofile hsa-rocr-dev hsakmt-roct-dev libpapi-dev curl libopenmpi-dev openmpi-bin libfabric-dev &&
python3 -m pip install --upgrade pip &&
python3 -m pip install 'cmake==3.21.4' &&
for i in 6 7 8 9 10; do /opt/conda/envs/py3.${i}/bin/python -m pip install numpy perfetto dataclasses; done
for i in 6 7 8 9 10; do /opt/conda/envs/py3.${i}/bin/python -m pip install numpy perfetto dataclasses; done &&
apt-get -y --purge autoremove &&
apt-get -y clean &&
/opt/conda/bin/conda clean -y -a
- name: Configure Env
run: |
Expand Down Expand Up @@ -427,7 +435,10 @@ jobs:
python3 -m pip install --upgrade pip &&
python3 -m pip install numpy &&
python3 -m pip install perfetto &&
python3 -m pip install 'cmake==3.16.3'
python3 -m pip install 'cmake==3.16.3' &&
sudo apt-get -y --purge autoremove &&
sudo apt-get -y clean
- name: Test Environment Modules
timeout-minutes: 15
Expand Down Expand Up @@ -577,7 +588,10 @@ jobs:
python3 -m pip install numpy &&
python3 -m pip install perfetto &&
python3 -m pip install 'cmake==3.24.1' &&
for i in 6 7 8 9 10; do /opt/conda/envs/py3.${i}/bin/python -m pip install numpy perfetto dataclasses; done
for i in 6 7 8 9 10; do /opt/conda/envs/py3.${i}/bin/python -m pip install numpy perfetto dataclasses; done &&
apt-get -y --purge autoremove &&
apt-get -y clean &&
/opt/conda/bin/conda clean -y -a
- name: Configure Env
run:
Expand All @@ -599,7 +613,7 @@ jobs:
-DOMNITRACE_BUILD_CI=OFF
-DOMNITRACE_BUILD_TESTING=ON
-DOMNITRACE_BUILD_DYNINST=OFF
-DOMNITRACE_BUILD_DEBUG=ON
-DOMNITRACE_BUILD_DEBUG=OFF
-DOMNITRACE_BUILD_HIDDEN_VISIBILITY=OFF
-DOMNITRACE_USE_MPI=ON
-DOMNITRACE_USE_PYTHON=ON
Expand Down

0 comments on commit 0d84a35

Please sign in to comment.