Unverified Commit 3a4a2183 authored by wukongdaily's avatar wukongdaily Committed by GitHub
Browse files

升级到正式版24.10.0

parent 38cb82fd
name: build-RaspBerryPi-24.10-ImmortalWrt name: build-RaspBerryPi-24.10.0
on: on:
workflow_dispatch: workflow_dispatch:
...@@ -41,23 +41,23 @@ jobs: ...@@ -41,23 +41,23 @@ jobs:
run: | run: |
chmod +x ${{ github.workspace }}/raspberrypi/24.10/build.sh chmod +x ${{ github.workspace }}/raspberrypi/24.10/build.sh
- name: Build raspberrypi ImmortalWrt 24.10 - name: Build raspberrypi ImmortalWrt 24.10.0
run: | run: |
profiles="${{ github.event.inputs.profile }}" profiles="${{ github.event.inputs.profile }}"
if [ "$profiles" = "rpi" ]; then if [ "$profiles" = "rpi" ]; then
tag=bcm27xx-bcm2708-openwrt-24.10.0-rc4 tag=bcm27xx-bcm2708-openwrt-24.10.0
echo "cpu=bcm2708" >> $GITHUB_ENV echo "cpu=bcm2708" >> $GITHUB_ENV
elif [ "$profiles" = "rpi-2" ]; then elif [ "$profiles" = "rpi-2" ]; then
tag=bcm27xx-bcm2709-openwrt-24.10.0-rc4 tag=bcm27xx-bcm2709-openwrt-24.10.0
echo "cpu=bcm2709" >> $GITHUB_ENV echo "cpu=bcm2709" >> $GITHUB_ENV
elif [ "$profiles" = "rpi-3" ]; then elif [ "$profiles" = "rpi-3" ]; then
tag=bcm27xx-bcm2710-openwrt-24.10.0-rc4 tag=bcm27xx-bcm2710-openwrt-24.10.0
echo "cpu=bcm2710" >> $GITHUB_ENV echo "cpu=bcm2710" >> $GITHUB_ENV
elif [ "$profiles" = "rpi-4" ]; then elif [ "$profiles" = "rpi-4" ]; then
tag=bcm27xx-bcm2711-openwrt-24.10.0-rc4 tag=bcm27xx-bcm2711-openwrt-24.10.0
echo "cpu=bcm2711" >> $GITHUB_ENV echo "cpu=bcm2711" >> $GITHUB_ENV
elif [ "$profiles" = "rpi-5" ]; then elif [ "$profiles" = "rpi-5" ]; then
tag=bcm27xx-bcm2712-openwrt-24.10.0-rc4 tag=bcm27xx-bcm2712-openwrt-24.10.0
echo "cpu=bcm2712" >> $GITHUB_ENV echo "cpu=bcm2712" >> $GITHUB_ENV
fi fi
include_docker="${{ github.event.inputs.include_docker }}" include_docker="${{ github.event.inputs.include_docker }}"
......
name: build-gl-inet-24.10.0
on:
workflow_dispatch:
inputs:
profile:
type: choice
description: "请选择路由器型号"
required: true
options:
- glinet_gl-mt3000
- glinet_gl-mt2500
- glinet_gl-mt6000
- glinet_gl-b2200
default: glinet_gl-mt3000
include_docker:
description: |
是否编译 Docker 插件
required: true
default: 'no'
type: choice
options:
- 'yes'
- 'no'
enable_pppoe:
description: "是否配置PPPoE拨号信息?"
required: true
default: 'no'
type: choice
options:
- 'yes'
- 'no'
pppoe_account:
description: "宽带账号 (若启用PPPoE)"
required: false
pppoe_password:
description: "宽带密码 (若启用PPPoE)"
required: false
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set executable permissions
run: |
chmod +x ${{ github.workspace }}/mediatek-filogic/build.sh
- name: Validate PPPoE Inputs
run: |
if [[ "${{ inputs.enable_pppoe }}" == "yes" ]]; then
if [[ -z "${{ inputs.pppoe_account }}" || -z "${{ inputs.pppoe_password }}" ]]; then
echo "Error: PPPoE account and password must be provided when PPPoE is enabled!"
exit 1
fi
fi
- name: Build Gl-iNet ImmortalWrt 24.10.0
run: |
profiles="${{ github.event.inputs.profile }}"
include_docker="${{ github.event.inputs.include_docker }}"
if [ "$profiles" = "glinet_gl-b2200" ]; then
tag=ipq40xx-generic-openwrt-24.10.0
echo "platform=ipq40xx/generic" >> $GITHUB_ENV
else
tag=mediatek-filogic-openwrt-24.10.0
echo "platform=mediatek/filogic" >> $GITHUB_ENV
fi
IFS=',' read -r -a profile_array <<< "$profiles"
for profile in "${profile_array[@]}"; do
echo "Building for profile: $profile"
docker run --rm -i \
--user root \
-v "${{ github.workspace }}/bin:/home/build/immortalwrt/bin" \
-v "${{ github.workspace }}/glinet:/home/build/immortalwrt/files/etc/uci-defaults" \
-v "${{ github.workspace }}/mediatek-filogic/build.sh:/home/build/immortalwrt/build.sh" \
-e PROFILE=$profile \
-e INCLUDE_DOCKER=$include_docker \
-e ENABLE_PPPOE=${{ inputs.enable_pppoe }} \
-e PPPOE_ACCOUNT=${{ inputs.pppoe_account }} \
-e PPPOE_PASSWORD=${{ inputs.pppoe_password }} \
immortalwrt/imagebuilder:$tag /bin/bash /home/build/immortalwrt/build.sh
done
- name: Generate Firmware SHA-256
run: |
cp ${{ github.workspace }}/bin/targets/${{ env.platform }}/*.bin ${{ github.workspace }}
for file in *.bin; do
sha256sum "$file" > "$file.sha256"
sha256sum -c "$file.sha256"
done
- name: Create info
run: |
if [ "${{ github.event.inputs.include_docker }}" == "yes" ]; then
extra_content="### 默认带docker"
echo -e "\n $extra_content" >> ${{ github.workspace }}/mediatek-filogic/info.md
else
echo -e "NO docker"
fi
- name: Upload ImmortalWrt as release assets
uses: softprops/action-gh-release@v2.2.1
with:
tag_name: Autobuild-GL-iNet
name: ImmortalWrt-GL-iNet
body_path: ${{ github.workspace }}/mediatek-filogic/info.md
files: |
${{ github.workspace }}/*.bin
${{ github.workspace }}/*.sha256
token: ${{ secrets.GITHUB_TOKEN }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
name: build-rockchip-immortalWrt-24.10 name: build-rockchip-immortalWrt-24.10.0
on: on:
workflow_dispatch: workflow_dispatch:
...@@ -113,7 +113,7 @@ jobs: ...@@ -113,7 +113,7 @@ jobs:
-e ENABLE_PPPOE=${{ inputs.enable_pppoe }} \ -e ENABLE_PPPOE=${{ inputs.enable_pppoe }} \
-e PPPOE_ACCOUNT=${{ inputs.pppoe_account }} \ -e PPPOE_ACCOUNT=${{ inputs.pppoe_account }} \
-e PPPOE_PASSWORD=${{ inputs.pppoe_password }} \ -e PPPOE_PASSWORD=${{ inputs.pppoe_password }} \
immortalwrt/imagebuilder:rockchip-armv8-openwrt-24.10.0-rc4 /bin/bash /home/build/immortalwrt/build.sh immortalwrt/imagebuilder:rockchip-armv8-openwrt-24.10.0 /bin/bash /home/build/immortalwrt/build.sh
done done
- name: Generate Firmware SHA-256 - name: Generate Firmware SHA-256
run: | run: |
......
name: build-sunxi-cortexa53-24.10-ImmpotalWrt name: build-sunxi-cortexa53-24.10.0
on: on:
workflow_dispatch: workflow_dispatch:
...@@ -65,7 +65,7 @@ jobs: ...@@ -65,7 +65,7 @@ jobs:
-e PROFILE=$profile \ -e PROFILE=$profile \
-e INCLUDE_DOCKER=$include_docker \ -e INCLUDE_DOCKER=$include_docker \
-e ROOTSIZE=$size \ -e ROOTSIZE=$size \
immortalwrt/imagebuilder:sunxi-cortexa53-openwrt-24.10.0-rc4 /bin/bash /home/build/immortalwrt/build.sh immortalwrt/imagebuilder:sunxi-cortexa53-openwrt-24.10.0 /bin/bash /home/build/immortalwrt/build.sh
done done
- name: Generate Firmware SHA-256 - name: Generate Firmware SHA-256
......
name: build-x86-64-immortalwrt-24.10 name: build-x86-64-immortalwrt-24.10.0
on: on:
workflow_dispatch: workflow_dispatch:
...@@ -72,7 +72,7 @@ jobs: ...@@ -72,7 +72,7 @@ jobs:
-e ENABLE_PPPOE=${{ inputs.enable_pppoe }} \ -e ENABLE_PPPOE=${{ inputs.enable_pppoe }} \
-e PPPOE_ACCOUNT=${{ inputs.pppoe_account }} \ -e PPPOE_ACCOUNT=${{ inputs.pppoe_account }} \
-e PPPOE_PASSWORD=${{ inputs.pppoe_password }} \ -e PPPOE_PASSWORD=${{ inputs.pppoe_password }} \
immortalwrt/imagebuilder:x86-64-openwrt-24.10.0-rc4 /bin/bash /home/build/immortalwrt/build.sh immortalwrt/imagebuilder:x86-64-openwrt-24.10.0 /bin/bash /home/build/immortalwrt/build.sh
done done
- name: Generate Firmware SHA-256 - name: Generate Firmware SHA-256
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment