mirror of
https://github.com/elseif/MikroTikPatch.git
synced 2026-09-04 14:35:49 +00:00
Compare commits
3 Commits
7.24.1-arm
...
7.25beta3
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
452cf3133f | ||
|
|
c00a16b842 | ||
|
|
a5928e0373 |
12
.github/workflows/main.yml
vendored
12
.github/workflows/main.yml
vendored
@@ -34,7 +34,17 @@ jobs:
|
||||
channel: long-term
|
||||
release: true
|
||||
secrets: inherit
|
||||
|
||||
|
||||
Patch_Development_V7:
|
||||
if: |
|
||||
(github.event_name == 'schedule') ||
|
||||
(github.event_name == 'workflow_dispatch' && (github.event.inputs.version == 'all' || github.event.inputs.version == 'v7'))
|
||||
uses: ./.github/workflows/patch_v7.yml
|
||||
with:
|
||||
channel: development
|
||||
release: true
|
||||
secrets: inherit
|
||||
|
||||
Patch_Stable_V6:
|
||||
if: |
|
||||
(github.event_name == 'schedule') ||
|
||||
|
||||
74
.github/workflows/patch_v7.yml
vendored
74
.github/workflows/patch_v7.yml
vendored
@@ -3,13 +3,14 @@ on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
channel:
|
||||
description: 'Channel (stable, long-term)'
|
||||
description: 'Channel (stable, long-term, development)'
|
||||
required: true
|
||||
default: 'stable'
|
||||
type: choice
|
||||
options:
|
||||
- stable
|
||||
- long-term
|
||||
- development
|
||||
arch:
|
||||
description: 'Architecture (x86, arm64)'
|
||||
required: true
|
||||
@@ -946,7 +947,7 @@ jobs:
|
||||
**Architecture**: $ARCH
|
||||
**Channel**: $CHANNEL
|
||||
|
||||
<details><summary><strong>RouterOS</strong></summary>
|
||||
<details open><summary><strong>RouterOS</strong></summary>
|
||||
|
||||
| Type | File |
|
||||
|------|------|
|
||||
@@ -954,7 +955,9 @@ jobs:
|
||||
|
||||
echo "| Main package | $(link_file "$PUBLISH_DIR/routeros-${VERSION}${ARCH_EXT}.npk") |" >> "$RELEASE_BODY"
|
||||
echo "| Extra packages | $(link_file "$PUBLISH_DIR/all_packages-$ARCH-$VERSION.zip") |" >> "$RELEASE_BODY"
|
||||
echo "| ISO Image | $(link_file "$PUBLISH_DIR/mikrotik-${VERSION}${ARCH_EXT}.iso") |" >> "$RELEASE_BODY"
|
||||
if [ "$ARCH" == "x86" ] || [ "$ARCH" == "arm64" ]; then
|
||||
echo "| ISO Image | $(link_file "$PUBLISH_DIR/mikrotik-${VERSION}${ARCH_EXT}.iso") |" >> "$RELEASE_BODY"
|
||||
fi
|
||||
if [ "$ARCH" == "x86" ]; then
|
||||
echo "| Install Image | $(link_file "$PUBLISH_DIR/install-image-$VERSION.zip") |" >> "$RELEASE_BODY"
|
||||
echo "| Netinstall | $(link_file "$PUBLISH_DIR/netinstall-$VERSION.zip") |" >> "$RELEASE_BODY"
|
||||
@@ -962,41 +965,41 @@ jobs:
|
||||
echo "</details>" >> "$RELEASE_BODY"
|
||||
echo "" >> "$RELEASE_BODY"
|
||||
|
||||
echo "<details><summary><strong>Cloud Hosted Router (CHR)</strong></summary>" >> "$RELEASE_BODY"
|
||||
echo "" >> "$RELEASE_BODY"
|
||||
if [ "$ARCH" == "x86" ]; then
|
||||
echo "| Platform | UEFI | Legacy BIOS |" >> "$RELEASE_BODY"
|
||||
echo "|--------|------|-------------|" >> "$RELEASE_BODY"
|
||||
else
|
||||
echo "| Platform | UEFI |" >> "$RELEASE_BODY"
|
||||
echo "|--------|------|" >> "$RELEASE_BODY"
|
||||
fi
|
||||
|
||||
formats=("img" "ova" "qcow2" "vdi" "vhd" "vhdx" "vmdk")
|
||||
declare -A FORMAT_PLATFORM=(
|
||||
["img"]="Raw disk image"
|
||||
["ova"]="Open Virtual Appliance"
|
||||
["qcow2"]="QEMU/KVM"
|
||||
["vdi"]="VirtualBox"
|
||||
["vhd"]="Hyper-V (legacy)"
|
||||
["vhdx"]="Hyper-V"
|
||||
["vmdk"]="VMware"
|
||||
)
|
||||
|
||||
for fmt in "${formats[@]}"; do
|
||||
platform="${FORMAT_PLATFORM[$fmt]}"
|
||||
uefi_link=$(link_file "$PUBLISH_DIR/chr-$VERSION$ARCH_EXT.$fmt.zip")
|
||||
if [ "$ARCH" == "x86" ] || [ "$ARCH" == "arm64" ]; then
|
||||
echo "<details open><summary><strong>Cloud Hosted Router (CHR)</strong></summary>" >> "$RELEASE_BODY"
|
||||
echo "" >> "$RELEASE_BODY"
|
||||
if [ "$ARCH" == "x86" ]; then
|
||||
legacy_link=$(link_file "$PUBLISH_DIR/chr-$VERSION$ARCH_EXT-legacy-bios.$fmt.zip")
|
||||
echo "| $platform | $uefi_link | $legacy_link |" >> "$RELEASE_BODY"
|
||||
echo "| Platform | UEFI | Legacy BIOS |" >> "$RELEASE_BODY"
|
||||
echo "|--------|------|-------------|" >> "$RELEASE_BODY"
|
||||
else
|
||||
echo "| $platform | $uefi_link |" >> "$RELEASE_BODY"
|
||||
echo "| Platform | UEFI |" >> "$RELEASE_BODY"
|
||||
echo "|--------|------|" >> "$RELEASE_BODY"
|
||||
fi
|
||||
done
|
||||
echo "</details>" >> "$RELEASE_BODY"
|
||||
echo "" >> "$RELEASE_BODY"
|
||||
|
||||
formats=("img" "ova" "qcow2" "vdi" "vhd" "vhdx" "vmdk")
|
||||
declare -A FORMAT_PLATFORM=(
|
||||
["img"]="Raw disk image"
|
||||
["ova"]="Open Virtual Appliance"
|
||||
["qcow2"]="QEMU/KVM"
|
||||
["vdi"]="VirtualBox"
|
||||
["vhd"]="Hyper-V (legacy)"
|
||||
["vhdx"]="Hyper-V"
|
||||
["vmdk"]="VMware"
|
||||
)
|
||||
|
||||
for fmt in "${formats[@]}"; do
|
||||
platform="${FORMAT_PLATFORM[$fmt]}"
|
||||
uefi_link=$(link_file "$PUBLISH_DIR/chr-$VERSION$ARCH_EXT.$fmt.zip")
|
||||
if [ "$ARCH" == "x86" ]; then
|
||||
legacy_link=$(link_file "$PUBLISH_DIR/chr-$VERSION$ARCH_EXT-legacy-bios.$fmt.zip")
|
||||
echo "| $platform | $uefi_link | $legacy_link |" >> "$RELEASE_BODY"
|
||||
else
|
||||
echo "| $platform | $uefi_link |" >> "$RELEASE_BODY"
|
||||
fi
|
||||
done
|
||||
echo "</details>" >> "$RELEASE_BODY"
|
||||
echo "" >> "$RELEASE_BODY"
|
||||
fi
|
||||
echo "<details><summary><strong>Changelog</strong></summary>" >> "$RELEASE_BODY"
|
||||
echo "" >> "$RELEASE_BODY"
|
||||
echo "<pre>" >> "$RELEASE_BODY"
|
||||
@@ -1016,12 +1019,13 @@ jobs:
|
||||
body_path: ${{env.BUILD_DIR}}/RELEASE_BODY.md
|
||||
tag_name: ${{ env.VERSION }}${{ env.ARCH_EXT }}
|
||||
make_latest: ${{ env.CHANNEL == 'stable' && matrix.arch == 'x86'}}
|
||||
prerelease: ${{ env.CHANNEL == 'development' || env.CHANNEL == 'testing'}}
|
||||
files: |
|
||||
${{env.PUBLISH_DIR}}/*.zip
|
||||
${{env.PUBLISH_DIR}}/*.iso
|
||||
${{env.PUBLISH_DIR}}/routeros*.npk
|
||||
${{env.PUBLISH_DIR}}/*.zip.sha256
|
||||
${{env.PUBLISH_DIR}}/*.iso
|
||||
${{env.PUBLISH_DIR}}/*.iso.sha256
|
||||
${{env.PUBLISH_DIR}}/routeros*.npk
|
||||
${{env.PUBLISH_DIR}}/routeros*.npk.sha256
|
||||
|
||||
- name: Upload Files
|
||||
|
||||
Reference in New Issue
Block a user