30
30
jobs :
31
31
benchmarks :
32
32
name : Benchmarks
33
- # env:
34
- # VCPKG_PATH: "${{github.workspace}}/build/vcpkg/packages/hwloc_x64-windows;${{github.workspace}}/build/vcpkg/packages/tbb_x64-windows;${{github.workspace}}/build/vcpkg/packages/jemalloc_x64-windows"
35
33
strategy :
36
34
matrix :
37
- os : ['ubuntu-latest'] # , 'windows-latest']
38
- include :
39
- # Windows doesn't recognize 'CMAKE_BUILD_TYPE', it uses '--config' param in build command to determine the build type
40
- - os : ubuntu-latest
41
- extra_build_option : ' -DCMAKE_BUILD_TYPE=Release'
35
+ os : ['ubuntu-latest']
42
36
runs-on : ${{matrix.os}}
43
37
44
38
steps :
@@ -75,31 +69,17 @@ jobs:
75
69
git rev-parse origin/pr/${PR_NO}/merge
76
70
77
71
- name : Install apt packages
78
- if : matrix.os == 'ubuntu-latest'
79
72
run : |
80
73
sudo apt-get update
81
74
sudo apt-get install -y cmake libhwloc-dev libnuma-dev libtbb-dev
82
75
83
- # - name: Initialize vcpkg
84
- # if: matrix.os == 'windows-latest'
85
- # uses: lukka/run-vcpkg@5e0cab206a5ea620130caf672fce3e4a6b5666a1 # v11.5
86
- # with:
87
- # vcpkgGitCommitId: 3dd44b931481d7a8e9ba412621fa810232b66289
88
- # vcpkgDirectory: ${{env.BUILD_DIR}}/vcpkg
89
- # vcpkgJsonGlob: '**/vcpkg.json'
90
-
91
- # - name: Install vcpkg packages
92
- # if: matrix.os == 'windows-latest'
93
- # run: vcpkg install
94
- # shell: pwsh # Specifies PowerShell as the shell for running the script.
95
-
96
- # -DCMAKE_PREFIX_PATH="${{env.VCPKG_PATH}}"
97
76
- name : Configure build
98
77
run : >
99
78
cmake
100
79
-B ${{env.BUILD_DIR}}
101
80
${{matrix.extra_build_option}}
102
81
-DCMAKE_INSTALL_PREFIX="${{env.INSTL_DIR}}"
82
+ -DCMAKE_BUILD_TYPE=Release
103
83
-DUMF_BUILD_SHARED_LIBRARY=ON
104
84
-DUMF_BUILD_BENCHMARKS=ON
105
85
-DUMF_BUILD_BENCHMARKS_MT=ON
@@ -112,13 +92,8 @@ jobs:
112
92
-DUMF_BUILD_LIBUMF_POOL_JEMALLOC=ON
113
93
114
94
- name : Build UMF on Linux
115
- if : matrix.os == 'ubuntu-latest'
116
95
run : cmake --build ${{env.BUILD_DIR}} -j $(nproc)
117
96
118
- # - name: Build UMF on Windows
119
- # if: matrix.os == 'windows-latest'
120
- # run: cmake --build ${{env.BUILD_DIR}} --config Release -j $Env:NUMBER_OF_PROCESSORS
121
-
122
97
- name : Checkout UR
123
98
uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
124
99
with :
@@ -132,14 +107,12 @@ jobs:
132
107
pip install --force-reinstall -r ${{github.workspace}}/ur-repo/third_party/benchmark_requirements.txt
133
108
134
109
- name : Install HWLOC
135
- if : matrix.os == 'ubuntu-latest'
136
110
run : |
137
111
sudo apt-get update
138
112
sudo apt-get install libhwloc-dev
139
113
140
114
- name : Run benchmarks
141
115
id : benchmarks
142
- if : matrix.os == 'ubuntu-latest'
143
116
working-directory : ${{env.BUILD_DIR}}
144
117
run : >
145
118
${{ github.workspace }}/ur-repo/scripts/benchmarks/main.py
@@ -152,16 +125,6 @@ jobs:
152
125
run : >
153
126
echo 'out: ${{ steps.benchmarks.outcome }}'
154
127
155
- # - name: Run benchmarks
156
- # if: matrix.os == 'windows-latest'
157
- # working-directory: ${{env.BUILD_DIR}}
158
- # run: >
159
- # python3 ${{ github.workspace }}/ur-repo/scripts/benchmarks/main.py
160
- # ~/bench_workdir
161
- # --umf ${{env.BUILD_DIR}}
162
- # ${{ inputs.upload_report && '--output-html' || '' }}
163
- # ${{ inputs.bench_script_params }}
164
-
165
128
- name : Add comment to PR
166
129
uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
167
130
if : ${{ always() && inputs.pr_no != 0 }}
0 commit comments