@@ -5,6 +5,7 @@ on: workflow_call
5
5
6
6
permissions :
7
7
contents : read
8
+ packages : read
8
9
9
10
env :
10
11
BUILD_DIR : " ${{github.workspace}}/build"
@@ -112,23 +113,17 @@ jobs:
112
113
disable_hwloc : ' OFF'
113
114
link_hwloc_statically : ' ON'
114
115
runs-on : ${{matrix.os}}
115
-
116
+ container :
117
+ image : ${{ matrix.os == 'ubuntu-20.04' && 'ghcr.io/rbanka1/umf2-ubuntu-20.04:latest' || matrix.os == 'ubuntu-22.04' && 'ghcr.io/rbanka1/umf2-ubuntu-22.04:latest' || matrix.os == 'ubuntu-24.04' && 'ghcr.io/rbanka1/umf2-ubuntu-24.04:latest'}}
118
+ options : --user root --privileged
119
+ volumes :
120
+ - /home/runner/work/unified-memory-framework/unified-memory-framework:/home/runner/work/unified-memory-framework/unified-memory-framework
116
121
steps :
117
122
- name : Checkout
118
123
uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
119
124
with :
120
125
fetch-depth : 0
121
126
122
- - name : Install apt packages
123
- run : |
124
- sudo apt-get update
125
- sudo apt-get install -y clang cmake libnuma-dev lcov
126
-
127
- - name : Install TBB apt package
128
- if : matrix.install_tbb == 'ON'
129
- run : |
130
- sudo apt-get install -y libtbb-dev
131
-
132
127
- name : Install oneAPI basekit
133
128
if : matrix.compiler.cxx == 'icpx'
134
129
run : |
@@ -137,18 +132,6 @@ jobs:
137
132
echo "deb [signed-by=/usr/share/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main" | sudo tee /etc/apt/sources.list.d/oneAPI.list
138
133
sudo apt-get update
139
134
sudo apt-get install -y intel-oneapi-ippcp-devel intel-oneapi-ipp-devel intel-oneapi-common-oneapi-vars intel-oneapi-compiler-dpcpp-cpp
140
-
141
- - name : Install g++-7
142
- if : matrix.compiler.cxx == 'g++-7'
143
- run : sudo apt-get install -y ${{matrix.compiler.cxx}}
144
-
145
- - name : Install libhwloc
146
- run : .github/scripts/install_hwloc.sh
147
-
148
- - name : Get UMF version
149
- run : |
150
- VERSION=$(git describe --tags --abbrev=0 | grep -oP '\d+\.\d+\.\d+')
151
- echo "UMF_VERSION=$VERSION" >> $GITHUB_ENV
152
135
153
136
- name : Configure build
154
137
run : >
@@ -200,16 +183,16 @@ jobs:
200
183
- name : Remove the installation directory
201
184
run : rm -rf ${{env.INSTL_DIR}}
202
185
203
- - name : Test UMF installation and uninstallation
204
- # The '--shared-library' parameter is added to the installation test when the UMF is built as a shared library
205
- run : >
206
- python3 ${{github.workspace}}/test/test_installation.py
207
- --build-dir ${{env.BUILD_DIR}}
208
- --install-dir ${{env.INSTL_DIR}}
209
- --build-type ${{matrix.build_type}}
210
- ${{ matrix.install_tbb == 'ON' && matrix.disable_hwloc != 'ON' && matrix.shared_library == 'ON' && '--proxy' || '' }}
211
- --umf-version ${{env.UMF_VERSION}}
212
- ${{ matrix.shared_library == 'ON' && '--shared-library' || '' }}
186
+ # - name: Test UMF installation and uninstallation
187
+ # # The '--shared-library' parameter is added to the installation test when the UMF is built as a shared library
188
+ # run: >
189
+ # python3 ${{github.workspace}}/test/test_installation.py
190
+ # --build-dir ${{env.BUILD_DIR}}
191
+ # --install-dir ${{env.INSTL_DIR}}
192
+ # --build-type ${{matrix.build_type}}
193
+ # ${{ matrix.install_tbb == 'ON' && matrix.disable_hwloc != 'ON' && matrix.shared_library == 'ON' && '--proxy' || '' }}
194
+ # --umf-version ${{env.UMF_VERSION}}
195
+ # ${{ matrix.shared_library == 'ON' && '--shared-library' || '' }}
213
196
214
197
windows-build :
215
198
name : Windows
0 commit comments