File tree 5 files changed +40
-19
lines changed
5 files changed +40
-19
lines changed Original file line number Diff line number Diff line change
1
+ name : Build thinkfan
2
+ description : ' Composite action to build thinkfan.'
3
+
4
+ runs :
5
+ using : composite
6
+ steps :
7
+ - name : build
8
+ run : |
9
+ mkdir build
10
+ cmake -B build
11
+ cmake --build build
12
+ shell : bash
Original file line number Diff line number Diff line change
1
+ name : Install thinkfan
2
+ description : ' Composite action to install thinkfan.'
3
+
4
+ runs :
5
+ using : composite
6
+ steps :
7
+ - name : install
8
+ run : |
9
+ sudo cmake --install ${{ github.workspace }}/build
10
+ shell : bash
Original file line number Diff line number Diff line change
1
+ name : Install thinkfan Dependencies
2
+ description : ' Composite action to install thinkfan dependencies.'
3
+
4
+ runs :
5
+ using : composite
6
+ steps :
7
+ - name : install-deps
8
+ run : |
9
+ sudo apt update
10
+ sudo apt install -y libyaml-cpp-dev libatasmart-dev cmake libsensors4-dev
11
+ shell : bash
Original file line number Diff line number Diff line change 13
13
matrix :
14
14
os : [ubuntu-20.04, ubuntu-22.04]
15
15
steps :
16
- - uses : actions/checkout@v2
17
- - name : install-deps
18
- run : sudo apt install libyaml-cpp-dev libatasmart-dev cmake libsensors4-dev
19
- - name : build
20
- run : |
21
- mkdir build
22
- cmake -B build
23
- cmake --build build
24
- - name : install
25
- run : sudo cmake --install ${{ github.workspace }}/build
16
+ - uses : actions/checkout@v4
17
+ - uses : ./.github/actions/install_thinkfan_deps
18
+ - uses : ./.github/actions/build_thinkfan
19
+ - uses : ./.github/actions/install_thinkfan
Original file line number Diff line number Diff line change 27
27
28
28
steps :
29
29
- name : Checkout repository
30
- uses : actions/checkout@v3
30
+ uses : actions/checkout@v4
31
31
32
- - name : install-deps
33
- run : sudo apt install libyaml-cpp-dev libatasmart-dev cmake libsensors4-dev
32
+ - uses : ./.github/actions/install_thinkfan_deps
34
33
35
34
# Initializes the CodeQL tools for scanning.
36
35
- name : Initialize CodeQL
44
43
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
45
44
queries : +security-and-quality
46
45
47
-
48
- - name : build
49
- run : |
50
- mkdir build
51
- cmake -B build
52
- cmake --build build
46
+ - uses : ./.github/actions/build_thinkfan
53
47
54
48
- name : Perform CodeQL Analysis
55
49
uses : github/codeql-action/analyze@v2
You can’t perform that action at this time.
0 commit comments