From ac9c61924d82c8a9778e15c56c50acdb35b8b99f Mon Sep 17 00:00:00 2001 From: elseif Date: Sun, 19 Jan 2025 21:32:29 +0800 Subject: [PATCH] Update mikrotik_patch_7.yml Signed-off-by: elseif --- .github/workflows/mikrotik_patch_7.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/mikrotik_patch_7.yml b/.github/workflows/mikrotik_patch_7.yml index cfae620..3974207 100644 --- a/.github/workflows/mikrotik_patch_7.yml +++ b/.github/workflows/mikrotik_patch_7.yml @@ -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/