-
Notifications
You must be signed in to change notification settings - Fork 4
56 lines (52 loc) · 1.39 KB
/
docker_workflow.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
# SPDX-FileCopyrightText: Intel Corporation
#
# SPDX-License-Identifier: BSD-3-Clause
name: Docker
permissions: read-all
on:
pull_request:
workflow_dispatch:
push:
branches:
- main
jobs:
run_precommit:
name: Run pre-commit
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Setup Python
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
with:
python-version: '3.11'
cache: 'pip'
- name: Run checkers
run: |
pip install pre-commit
pre-commit run --all
run_examples:
name: Build and run examples
runs-on: ubuntu-latest
container:
image: intel/oneapi:latest
env:
CXX: icpx
CC: icx
volumes:
- ${{ github.workspace }}:/src
steps:
- name: Check out
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Build examples
run: |
cmake -B build
cmake --build build -j
- name: Run examples
run: |
mpirun -n 3 ./build/src/example1
mpirun -n 3 ./build/src/example2
mpirun -n 3 ./build/src/example3
mpirun -n 3 ./build/src/example4
mpirun -n 3 ./build/src/example5
mpirun -n 3 ./build/src/example6