Skip to content

Commit

Permalink
extend workflow to allow for other kernel versions
Browse files Browse the repository at this point in the history
  • Loading branch information
alibobi committed Nov 20, 2024
1 parent f97d51a commit 61c880e
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,21 +89,34 @@ jobs:
tar -xzf "$archive" -C combined-kernels
done
ls -al downloaded-kernels
ls -al combined-kernels
# Combine OSI profiles for each kernel version
# otherwise the extracted kernel configs willc lobber each other
if [ -d combined-kernels/kernels/4.10 ] ; then
for archive in $(find downloaded-kernels -name "*.tar.gz"); do
tar -O -xf "$archive" "kernels/4.10/osi.config";
if tar -tzf "$archive" "kernels/4.10/osi.config" &>/dev/null; then
tar -O -xf "$archive" "kernels/4.10/osi.config";
fi
done > combined-kernels/kernels/4.10/osi.config
fi
if [ -d combined-kernels/kernels/6.7 ] ; then
for archive in $(find downloaded-kernels -name "*.tar.gz"); do
tar -O -xf "$archive" "kernels/6.7/osi.config";
if tar -tzf "$archive" "kernels/6.7/osi.config" &>/dev/null; then
tar -O -xf "$archive" "kernels/6.7/osi.config";
fi
done > combined-kernels/kernels/6.7/osi.config
fi
if [ -d combined-kernels/kernels/3.14 ] ; then
for archive in $(find downloaded-kernels -name "*.tar.gz"); do
if tar -tzf "$archive" "kernels/3.14/osi.config" &>/dev/null; then
tar -O -xf "$archive" "kernels/3.14/osi.config";
fi
done > combined-kernels/kernels/3.14/osi.config
fi
# Create a new single archive from the combined content
tar -czvf kernels-latest.tar.gz -C combined-kernels .
Expand Down

0 comments on commit 61c880e

Please sign in to comment.