Browse Source

Update mikrotik_patch_6.yml

Signed-off-by: elseif <elseif@live.cn>
pull/118/head
elseif 9 months ago
committed by GitHub
parent
commit
6e0c64cd73
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 28
      .github/workflows/mikrotik_patch_6.yml

28
.github/workflows/mikrotik_patch_6.yml

@ -119,7 +119,33 @@ jobs:
fi fi
fi fi
echo "has_patched_npk=$has_patched_npk" >> $GITHUB_OUTPUT echo "has_patched_npk=$has_patched_npk" >> $GITHUB_OUTPUT
- name: Cache Squashfs
if: steps.get_latest.outputs.has_new_version == 'true'
id: cache-squashfs
uses: actions/cache@v4
with:
path: |
option.sfs
key: busybox-squashfs
- name: Create Squashfs for option
if: steps.get_latest.outputs.has_new_version == 'true' && steps.cache-squashfs.outputs.cache-hit != 'true'
run: |
sudo mkdir -p ./option-root/bin/
sudo cp busybox/busybox_x86 ./option-root/bin/busybox
sudo chmod +x ./option-root/bin/busybox
sudo cp keygen/keygen_x86 ./option-root/bin/keygen
sudo chmod +x ./option-root/bin/keygen
sudo chmod +x ./busybox/busybox_x86
COMMANDS=$(./busybox/busybox_x86 --list)
for cmd in $COMMANDS; do
sudo ln -sf /pckg/option/bin/busybox ./option-root/bin/$cmd
done
sudo mksquashfs option-root option.sfs -quiet -comp xz -no-xattrs -b 256k
sudo rm -rf option-root
- name: Cache mikrotik-${{ env.LATEST_VERSION }}.iso - name: Cache mikrotik-${{ env.LATEST_VERSION }}.iso
if: steps.get_latest.outputs.has_new_version == 'true' if: steps.get_latest.outputs.has_new_version == 'true'
id: cache-mikrotik id: cache-mikrotik

Loading…
Cancel
Save