-
Notifications
You must be signed in to change notification settings - Fork 16
executable file
·101 lines (88 loc) · 2.92 KB
/
plugins.yaml
File metadata and controls
executable file
·101 lines (88 loc) · 2.92 KB
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
---
name: Check Slurm Plugins
on:
workflow_dispatch: # Allows manual trigger from GitHub UI
pull_request:
branches:
- main
paths:
- plugins/**
permissions:
contents: read
jobs:
build_lint_test:
name: Build, Lint & Test
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4.1.4
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install -y clang-tidy
sudo apt-get install -y libssl3 libssl-dev libzip-dev pax-utils
sudo apt-get install -y slurm-wlm slurm-wlm-basic-plugins libslurm-dev
- name: Install pkg-config
run: sudo apt-get install -y pkg-config
- name: Set Toolchain
# https://github.com/dtolnay/rust-toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
components: rustfmt, clippy
- name: Build skeleton
working-directory: plugins/skeleton
run: |
mkdir build
pushd build
cmake .. -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
make
popd
- name: Run clang-tidy (skeleton)
working-directory: plugins/skeleton
run: |
clang-tidy *.c -p ./build --checks=-*,modrnize-*,readability-*,performance-*,portability-*,-readability-magic-numbers,-readability-identifier-length -header-filter=.*
- name: Build spank_qrmi
working-directory: plugins/spank_qrmi
run: |
mkdir build
pushd build
cmake .. -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
make
popd
- name: Run clang-tidy (spank_qrmi)
working-directory: plugins/spank_qrmi
run: |
clang-tidy *.c -p ./build --checks=-*,modrnize-*,readability-*,performance-*,portability-*,-readability-magic-numbers,-readability-identifier-length -header-filter=.* -- -Ibuild/deps/src/QRMI
- name: Test spank_qrmi
working-directory: plugins/tests/metadata
run: |
mkdir build
pushd build
cmake .. -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
make
./test ../../../spank_qrmi/build/spank_qrmi.so
popd
- name: Checkout QRMI repository
uses: actions/checkout@v4.1.4
with:
repository: qiskit-community/qrmi
ref: main
path: external/qrmi
- name: Build spank_qrmi (w/QRMI_ROOT)
working-directory: plugins/spank_qrmi
run: |
pushd build
rm -rf *
cmake .. -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DQRMI_ROOT=$GITHUB_WORKSPACE/external/qrmi
make
popd
- name: Test spank_qrmi (w/QRMI_ROOT)
working-directory: plugins/tests/metadata
run: |
pushd build
rm -rf *
cmake .. -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
make
./test ../../../spank_qrmi/build/spank_qrmi.so
popd