forked from oneapi-src/distributed-ranges
-
Notifications
You must be signed in to change notification settings - Fork 0
189 lines (177 loc) · 6.01 KB
/
pr.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
# SPDX-FileCopyrightText: Intel Corporation
#
# SPDX-License-Identifier: BSD-3-Clause
name: "PR Tests"
permissions: read-all
on:
push:
branches:
- main
pull_request:
env:
CTEST_OUTPUT_ON_FAILURE: 1
jobs:
checks:
runs-on: intel-ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Ubuntu dependencies
run: scripts/install-doxygen.sh
- uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
with:
python-version: '3.10'
cache: 'pip'
- name: Install python dependencies
run: pip install -r requirements.txt
- name: Run checkers
run: pre-commit run --all
# disabled due to DRA-163
# unit_tests:
# runs-on: gkpvc
# timeout-minutes: 30
# strategy:
# # test everything, even if one fails
# fail-fast: false
# matrix:
# include:
# # - cxx: icpx
# - cxx: g++
# name: ${{ matrix.cxx }}
# env:
# CXX: ${{ matrix.cxx }}
# steps:
# - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
# - name: Generate
# run: cmake -B build
# - name: Build
# run: make -C build -j
# - name: Unit tests
# run: ctest --test-dir build -L TESTLABEL -j 4
# - uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4
# if: always()
# with:
# name: log-gcc-${{ env.CXX }}
# path: |
# build/Testing
# build/test/gtest/mhp/*.log
# build/benchmarks/gbench/mhp/*.log
# build/examples/mhp/*.log
pvc_unit_tests:
runs-on: gkpvc
timeout-minutes: 30
strategy:
# test everything, even if one fails
fail-fast: false
matrix:
include:
# Disabled because it gets a timeout 1/2 the time
#- config: Debug
- config: Release
name: pvc-impi-icpx-${{ matrix.config }}
env:
CXX: icpx
FI_PROVIDER: tcp
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Generate
run: cmake -B build -DCMAKE_BUILD_TYPE=${{ matrix.config }}
- name: Save environment dump
run: printenv > build/envdump.txt
# change this step to building just tests once unittest job is back
- name: Build everything
run: make -C build -j
# - name: Build tests
# run: cmake --build build --target all-tests -- -j
- name: Unit tests
# run: srun -p cluster scripts/run_command_on_compute_node.sh build/Testing/tests.outerr.txt ctest --test-dir build -L TESTLABEL -j 4
run: ctest --test-dir build -L TESTLABEL -j 4
- uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4
if: always()
with:
name: log-pvc-impi-icpx-${{ matrix.config }}
path: |
build/CMakeCache.txt
build/envdump.txt
build/Testing
build/test/gtest/mhp/*.log
build/benchmarks/gbench/mhp/*.log
build/examples/mhp/*.log
build/test/gtest/shp/*.log
build/benchmarks/gbench/shp/*.log
build/examples/shp/*.log
# disabled due to DRA-164
# ishmem_unit_tests:
# runs-on: gkpvc
# timeout-minutes: 30
# strategy:
# # test everything, even if one fails
# fail-fast: false
# matrix:
# include:
# # Disabled because also gets a timeout
# # - config: Debug
# - config: Release
# name: ishmem-impi-icpx-${{ matrix.config }}
# env:
# CXX: icpx
# steps:
# - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
# - name: Generate
# run: cmake -B build -DCMAKE_BUILD_TYPE=${{ matrix.config }} -DENABLE_ISHMEM=on -DENABLE_L0=on -DENABLE_OFI=on -DOFI_PROVIDER=psm3 -DONETILE_PVC=on
# - name: Build ISHMEM
# run: cmake --build build --target shmem -- -j
# - name: Build MHP tests
# run: cmake --build build --target mhp-tests mhp-tests-3 -- -j
# - name: MHP unit tests
# # run: srun -p cluster scripts/run_command_on_compute_node.sh build/Testing/mhptests.outerr.txt ctest --test-dir build -R ^mhp-tests-sycl -L MHP -j 4
# run: ctest --test-dir build -R ^mhp-tests-sycl -L MHP -j 4
# - uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4
# if: always()
# with:
# name: log-ishmem-impi-icpx-${{ matrix.config }}
# path: |
# build/Testing
# build/test/gtest/mhp/*.log
# build/benchmarks/gbench/mhp/*.log
# build/examples/mhp/*.log
publish:
# needs: [checks, unit_tests, pvc_unit_tests, ishmem_unit_tests]
needs: [checks, pvc_unit_tests]
runs-on: intel-ubuntu-latest
timeout-minutes: 10
permissions:
contents: write
env:
SPHINXOPTS: -q -W
if: ${{ github.ref == 'refs/heads/main' }}
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
with:
python-version: '3.10'
cache: 'pip'
- run: pip install -r requirements.txt
- name: Ubuntu dependencies
run: scripts/install-doxygen.sh
- name: Build doc
run: |
make -C doc/spec html
- name: Checkout gh-pages
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
ref: gh-pages
path: gh-pages
- name: Publish to github pages
run: |
rm -rf gh-pages/spec gh-pages/doxygen
touch gh-pages/.nojekyll
cp -r doc/spec/build/html gh-pages/spec
cp -r doc/spec/build/doxygen-html gh-pages/doxygen
cd gh-pages
git config user.name github-actions
git config user.email [email protected]
git add .
# Ignore errors because no updates returns an error status.
git commit --reset-author --amend -m "Update from github actions"
git push --force origin gh-pages