mirror of
https://huihui.cat/mirrors/MikroTikPatch.git
synced 2025-12-10 03:24:37 +01:00
Update mikrotik_patch_7.yml
Signed-off-by: elseif <elseif@live.cn>
This commit is contained in:
parent
073e8811d8
commit
ac9c61924d
1 changed files with 3 additions and 3 deletions
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
|
sudo rm ./install-image-$LATEST_VERSION.img
|
||||||
|
|
||||||
- name: Cache chr-${{ env.LATEST_VERSION }}${{ env.ARCH }}.img.zip
|
- 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
|
id: cache-chr-img
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
|
|
@ -298,7 +298,7 @@ jobs:
|
||||||
key: chr-${{ env.LATEST_VERSION }}-${{ matrix.arch }}.img
|
key: chr-${{ env.LATEST_VERSION }}-${{ matrix.arch }}.img
|
||||||
|
|
||||||
- name: Get chr-${{ env.LATEST_VERSION }}${{ env.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: |
|
run: |
|
||||||
sudo wget -nv -O chr.img.zip https://download.mikrotik.com/routeros/$LATEST_VERSION/chr-$LATEST_VERSION$ARCH.img.zip
|
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
|
sudo unzip chr.img.zip
|
||||||
|
|
@ -330,7 +330,7 @@ jobs:
|
||||||
sudo mkdir -p ./img/{boot,routeros}
|
sudo mkdir -p ./img/{boot,routeros}
|
||||||
sudo mount /dev/nbd0p1 ./img/boot/
|
sudo mount /dev/nbd0p1 ./img/boot/
|
||||||
if [ "${{ matrix.arch }}" == "x86" ]; then
|
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 qemu-nbd -c /dev/nbd1 -f raw chr-$LATEST_VERSION$ARCH.img
|
||||||
sudo mkdir -p ./chr/{boot,routeros}
|
sudo mkdir -p ./chr/{boot,routeros}
|
||||||
sudo mount /dev/nbd1p1 ./chr/boot/
|
sudo mount /dev/nbd1p1 ./chr/boot/
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue