Browse Source
Update mikrotik_patch_7.yml
Signed-off-by: elseif <elseif@live.cn>
pull/71/head
elseif
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
3 additions and
3 deletions
-
.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/ |
|
|
|
|