Skip to content

Commit 022bbae

Browse files
authored
Merge pull request #844 from PatKamin/fix-nightly-tests
Move nightly CI tests to the main branch
2 parents 273c82b + fd93ee0 commit 022bbae

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

.github/workflows/nightly.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Nightly
2+
3+
on:
4+
schedule:
5+
# Run every day at 23:00 UTC
6+
- cron: '0 23 * * *'
7+
8+
jobs:
9+
long-fuzz-test:
10+
name: Run long fuzz tests
11+
strategy:
12+
matrix:
13+
build_type: [Debug, Release]
14+
compiler: [{c: clang, cxx: clang++}]
15+
16+
runs-on: 'ubuntu-22.04'
17+
18+
steps:
19+
- uses: actions/checkout@v3
20+
# with-ref part to be removed after merging 'adapters' branch with 'main'
21+
with:
22+
ref: adapters
23+
24+
- name: Install pip packages
25+
run: pip install -r third_party/requirements.txt
26+
27+
- name: Download DPC++
28+
run: |
29+
wget -O ${{github.workspace}}/dpcpp_compiler.tar.gz https://github.com/intel/llvm/releases/download/nightly-2023-08-31/sycl_linux.tar.gz
30+
mkdir dpcpp_compiler
31+
tar -xvf ${{github.workspace}}/dpcpp_compiler.tar.gz -C dpcpp_compiler
32+
33+
- name: Configure CMake
34+
run: >
35+
cmake
36+
-B${{github.workspace}}/build
37+
-DCMAKE_C_COMPILER=${{matrix.compiler.c}}
38+
-DCMAKE_CXX_COMPILER=${{matrix.compiler.cxx}}
39+
-DUR_ENABLE_TRACING=ON
40+
-DCMAKE_BUILD_TYPE=${{matrix.build_type}}
41+
-DUR_BUILD_TESTS=ON
42+
-DUR_USE_ASAN=ON
43+
-DUR_USE_UBSAN=ON
44+
-DUR_DPCXX=${{github.workspace}}/dpcpp_compiler/bin/clang++
45+
46+
- name: Build
47+
run: >
48+
LD_LIBRARY_PATH=${{github.workspace}}/dpcpp_compiler/lib
49+
cmake --build ${{github.workspace}}/build -j $(nproc)
50+
51+
- name: Fuzz long test
52+
working-directory: ${{github.workspace}}/build
53+
run: ctest -C ${{matrix.build_type}} --output-on-failure -L "fuzz-long"

0 commit comments

Comments
 (0)