24.11.27 #140
Workflow file for this run
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
name: Tar modules | |
on: | |
release: | |
types: [published] | |
workflow_dispatch: | |
jobs: | |
tar: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Tar modules | |
run: | | |
ls -d *-*/ | grep -v -e bromolow -e braswell -e broadwellnkv2 -e broadwellntbap -e purley -e epyc7002 | |
for D in `ls -d *-*/ | grep -v -e bromolow -e braswell -e broadwellnkv2 -e broadwellntbap -e purley`; do | |
E=$(echo ${D} | sed 's#/##') | |
echo "backup ${E} tcrp modules" | |
for file in "$E"/*.ko; do | |
if [ -f "$file" ]; then | |
new_name="${file}.bak" | |
mv -vf "$file" "$new_name" | |
fi | |
done | |
echo "download last rr ${E} module pack" | |
curl -kL https://github.com/PeterSuh-Q3/arpl-modules/releases/download/rr-last/${E}.tgz -o /tmp/${E}.tgz | |
echo "extract last rr ${E} module pack" | |
tar -xaf /tmp/${E}.tgz -C ./${E}/ | |
echo "restore ${E} tcrp modules" | |
for file in "$E"/*.ko.bak; do | |
if [ -f "$file" ]; then | |
new_name="${file%.bak}" | |
mv -vf "$file" "$new_name" | |
fi | |
done | |
echo "copy ${E} vanilla module" | |
[ -d ./vanilla/${E} ] && cp -vf ./vanilla/${E}/*.ko ./${E}/ | |
echo "copy ${E} thirdparty module" | |
[ -d ./thirdparty/${E} ] && cp -vf ./thirdparty/${E}/*.ko ./${E}/ | |
(cd ${E} && tar caf ../${E}.tgz *) | |
sha256sum ./${E}.tgz | awk '{print $1}' | awk '{print $1 " '${E}.tgz' modpack.sha256"}' >> files-chksum | |
done | |
echo "download latest bromolow,epyc7002 module pack(simple copy from rr-modules 24.10.1)" | |
curl -kLO https://github.com/PeterSuh-Q3/arpl-modules/releases/latest/download/bromolow-3.10.108.tgz | |
curl -kLO https://github.com/PeterSuh-Q3/arpl-modules/releases/latest/download/epyc7002-7.1-5.10.55.tgz | |
curl -kLO https://github.com/PeterSuh-Q3/arpl-modules/releases/latest/download/epyc7002-7.2-5.10.55.tgz | |
sha256sum ./bromolow-3.10.108.tgz | awk '{print $1}' | awk '{print $1 " 'bromolow-3.10.108.tgz' modpack.sha256"}' >> files-chksum | |
sha256sum ./epyc7002-7.1-5.10.55.tgz | awk '{print $1}' | awk '{print $1 " 'epyc7002-7.1-5.10.55.tgz' modpack.sha256"}' >> files-chksum | |
sha256sum ./epyc7002-7.2-5.10.55.tgz | awk '{print $1}' | awk '{print $1 " 'epyc7002-7.2-5.10.55.tgz' modpack.sha256"}' >> files-chksum | |
echo "download latest firmware.tgz(simple copy)" | |
curl -kL https://github.com/PeterSuh-Q3/arpl-modules/releases/latest/download/firmware.tgz -o /tmp/firmware.tgz | |
echo "extract latest firmware.tgz" | |
[ ! -d ./firmware/ ] && mkdir ./firmware/ | |
tar -xaf /tmp/firmware.tgz -C ./firmware/ | |
echo "copy thirdparty i915 firmware" | |
[ -d ./thirdparty/firmware ] && cp -vrf ./thirdparty/firmware/* ./firmware/ | |
(cd firmware && tar caf ../firmware.tgz *) | |
sha256sum ./firmware.tgz | awk '{print $1}' | awk '{print $1 " 'firmware.tgz' firmware.sha256"}' >> files-chksum | |
cat files-chksum | |
# Publish a release if is a tag | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: | | |
*.tgz, files-chksum | |
- name: Trigger Workflow in Another Repository | |
uses: peter-evans/repository-dispatch@v1 | |
with: | |
token: ${{ secrets.ACCESS_TOKEN }} | |
repository: PeterSuh-Q3/tcrp-modules | |
event-type: trigger-workflow |