Skip to content

Commit

Permalink
CI on public repo (#689)
Browse files Browse the repository at this point in the history
  • Loading branch information
lslusarczyk authored Jan 23, 2024
1 parent 64740a2 commit 3a6e979
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 20 deletions.
29 changes: 10 additions & 19 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,53 +18,44 @@ env:

jobs:
checks:
runs-on: tpi-ubuntu-latest
runs-on: intel-ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Ubuntu dependencies
run: scripts/instal-doxygen.sh
- uses: actions/setup-python@v5
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
run: pre-commit run --all

unit_tests:
runs-on: tpi-ubuntu-latest
runs-on: pvc
strategy:
# test everything, even if one fails
fail-fast: false
matrix:
include:
- cxx: icpx
- cxx: g++-10
- cxx: g++-11
- cxx: g++-12
name: ${{ matrix.cxx }}
env:
CXX: ${{ matrix.cxx }}
steps:
- uses: actions/checkout@v4
- name: Generate
run: |
source /opt/intel/oneapi/setvars.sh
cmake -B build
run: cmake -B build
- name: Build
run: |
source /opt/intel/oneapi/setvars.sh
make -C build -j
run: make -C build -j
- name: MHP unit tests
run: |
source /opt/intel/oneapi/setvars.sh
ctest --test-dir build -L MHP -j 4
run: ctest --test-dir build -L MHP -j 4
- name: SHP unit tests
# Does not work on CPU
if: false
run: |
source /opt/intel/oneapi/setvars.sh
ctest --test-dir build -L SHP -j 4
run: ctest --test-dir build -L SHP -j 4
- uses: actions/upload-artifact@v4
if: always()
with:
Expand Down Expand Up @@ -141,7 +132,7 @@ jobs:
publish:
needs: [checks, unit_tests, pvc_unit_tests, ishmem_unit_tests]
runs-on: tpi-ubuntu-latest
runs-on: intel-ubuntu-latest
permissions:
contents: write
env:
Expand Down
3 changes: 2 additions & 1 deletion benchmarks/gbench/mhp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ add_executable(wave_equation wave_equation.cpp)
target_link_libraries(wave_equation cxxopts DR::mpi)
target_compile_definitions(wave_equation PRIVATE STANDALONE_BENCHMARK)
add_mhp_ctest(NAME wave_equation)
add_mhp_ctest(TEST_NAME wave_equation_fused NAME wave_equation TARGS -f)
# add_mhp_ctest(TEST_NAME wave_equation_fused NAME wave_equation TARGS -f) #
# DRA-92
if(ENABLE_SYCL)
add_mhp_ctest(
TEST_NAME wave_equation-sycl NAME wave_equation NPROC 2 SYCL)
Expand Down
10 changes: 10 additions & 0 deletions scripts/instal-doxygen.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# SPDX-FileCopyrightText: Intel Corporation
#
# SPDX-License-Identifier: BSD-3-Clause

set -xe
curl -s https://www.doxygen.nl/files/doxygen-1.9.6.linux.bin.tar.gz -o /tmp/dox.tgz
sudo tar zxf /tmp/dox.tgz -C /usr/local
sudo ln -s /usr/local/doxygen*/bin/* /usr/bin
sudo apt install -y \
graphviz

0 comments on commit 3a6e979

Please sign in to comment.