Skip to content

Commit ca2c398

Browse files
committed
gh-235: add workflow with testing
1 parent 2a29e4a commit ca2c398

1 file changed

Lines changed: 45 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Run tests
2+
3+
on:
4+
push:
5+
paths:
6+
- '.github/**'
7+
- 'deps/**'
8+
- 'include/**'
9+
- 'src/**'
10+
- 'tests/**'
11+
- 'examples/**'
12+
- 'python/**'
13+
- '.gitignore'
14+
- '.gitmodules'
15+
- 'CMakeLists.txt'
16+
pull_request:
17+
branches: [ main ]
18+
workflow_dispatch:
19+
20+
env:
21+
build_dir: "build"
22+
config: "Release"
23+
24+
jobs:
25+
test-with-pocl:
26+
runs-on:
27+
ubuntu-24.04
28+
steps:
29+
- uses: actions/checkout@v4
30+
with:
31+
submodules: true
32+
fetch-depth: 0
33+
- name: Install PoCL
34+
run: |
35+
sudo apt update
36+
sudo apt install -y pocl clinfo
37+
- name: Show available OpenCL devices
38+
run: |
39+
clinfo -l
40+
- name: Build spla
41+
run: |
42+
python3 ./build.py --build-dir=${{ env.build_dir }}
43+
- name: Run tests
44+
run: |
45+
python3 ./run_tests.py --build-dir=${{ env.build_dir }}

0 commit comments

Comments
 (0)