mirror of
https://github.com/elseif/MikroTikPatch.git
synced 2025-01-23 05:25:00 +03:00
Update mikrotik_patch_7.yml
Signed-off-by: elseif <elseif@live.cn>
This commit is contained in:
parent
073e8811d8
commit
ac9c61924d
6
.github/workflows/mikrotik_patch_7.yml
vendored
6
.github/workflows/mikrotik_patch_7.yml
vendored
@ -289,7 +289,7 @@ jobs:
|
||||
sudo rm ./install-image-$LATEST_VERSION.img
|
||||
|
||||
- name: Cache chr-${{ env.LATEST_VERSION }}${{ env.ARCH }}.img.zip
|
||||
if: steps.get_latest.outputs.has_new_version == 'true' && matrix.arch == 'arm64'
|
||||
if: steps.get_latest.outputs.has_new_version == 'true'
|
||||
id: cache-chr-img
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
@ -298,7 +298,7 @@ jobs:
|
||||
key: chr-${{ env.LATEST_VERSION }}-${{ matrix.arch }}.img
|
||||
|
||||
- name: Get chr-${{ env.LATEST_VERSION }}${{ env.ARCH }}.img
|
||||
if: steps.get_latest.outputs.has_new_version == 'true' && steps.cache-chr-img.outputs.cache-hit != 'true' && matrix.arch == 'arm64'
|
||||
if: steps.get_latest.outputs.has_new_version == 'true' && steps.cache-chr-img.outputs.cache-hit != 'true'
|
||||
run: |
|
||||
sudo wget -nv -O chr.img.zip https://download.mikrotik.com/routeros/$LATEST_VERSION/chr-$LATEST_VERSION$ARCH.img.zip
|
||||
sudo unzip chr.img.zip
|
||||
@ -330,7 +330,7 @@ jobs:
|
||||
sudo mkdir -p ./img/{boot,routeros}
|
||||
sudo mount /dev/nbd0p1 ./img/boot/
|
||||
if [ "${{ matrix.arch }}" == "x86" ]; then
|
||||
sudo cp ./chr.img ./chr-$LATEST_VERSION$ARCH-legacy-bios.img
|
||||
sudo cp chr.img chr-$LATEST_VERSION$ARCH-legacy-bios.img
|
||||
sudo qemu-nbd -c /dev/nbd1 -f raw chr-$LATEST_VERSION$ARCH.img
|
||||
sudo mkdir -p ./chr/{boot,routeros}
|
||||
sudo mount /dev/nbd1p1 ./chr/boot/
|
||||
|
Loading…
Reference in New Issue
Block a user