-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature(deb-package):compile_and_deploy
- Loading branch information
ARTHUR CHENU (ext)
committed
Dec 9, 2024
1 parent
57a33ef
commit e762ea8
Showing
8 changed files
with
73 additions
and
154 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
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 |
---|---|---|
|
@@ -7,4 +7,3 @@ on: | |
jobs: | ||
deb: | ||
uses: ./.github/workflows/build_deb.yaml | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,13 @@ | ||
#!/bin/bash | ||
|
||
# Color codes | ||
ERROR="\e[31mERROR:\e[0m" | ||
WARNING="\e[33mWARNING:\e[0m" | ||
|
||
LIB=("/lib/x86_64-linux-gnu/libc.so.6" | ||
"/lib/x86_64-linux-gnu/libgcc_s.so.1" | ||
"/lib/x86_64-linux-gnu/libm.so.6"); | ||
|
||
## | ||
# Check package presence on system | ||
# and set permission to rapl data | ||
## | ||
check_lib(){ | ||
local lib_pkg="$1"; | ||
|
||
for lib_pkg in "${LIB[@]}"; do | ||
if [ ! -f "$lib_pkg" ]; then | ||
echo -e "$ERROR Abort installation, '$lib_pkg' not found...\n" | ||
echo -e "$WARNING Install it...\n" | ||
exit 1 | ||
echo -e "\e[31mERROR:\e[0m : Abort installation, '$lib_pkg' not found...\n" | ||
fi | ||
} | ||
|
||
check_lib "${LIB[0]}" | ||
check_lib "${LIB[1]}" | ||
check_lib "${LIB[2]}" | ||
done | ||
|
||
exit 0 |
Binary file not shown.
Oops, something went wrong.