-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make install deps, build, and install actions re-usable. Signed-off-by: Bryan Hundven <[email protected]>
- Loading branch information
Showing
5 changed files
with
40 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
name: Build thinkfan | ||
description: 'Composite action to build thinkfan.' | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: build | ||
run: | | ||
mkdir build | ||
cmake -B build | ||
cmake --build build | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
name: Install thinkfan | ||
description: 'Composite action to install thinkfan.' | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: install | ||
run: | | ||
sudo cmake --install ${{ github.workspace }}/build | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
name: Install thinkfan Dependencies | ||
description: 'Composite action to install thinkfan dependencies.' | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: install-deps | ||
run: | | ||
sudo apt update | ||
sudo apt install -y libyaml-cpp-dev libatasmart-dev cmake libsensors4-dev | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters