"vscode:/vscode.git/clone" did not exist on "328c0ea9610c09a156bc25438100c0fe1484c9c3"
Unverified Commit f93e9b47 authored by wukongdaily's avatar wukongdaily Committed by GitHub
Browse files

Delete .github/workflows/x86-64-23.05.4.yml

parent 7509ba9d
name: build-x86-64
on:
workflow_dispatch:
inputs:
profile:
description: '手动输入的多个 profile,并按逗号分隔'
required: true
default: 'generic'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set executable permissions
run: chmod +x build.sh
- name: Setup Docker and Build
run: |
profiles="${{ github.event.inputs.profile }}"
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 }}/files:/home/build/immortalwrt/files" \
-v "${{ github.workspace }}/x86-64/imm.config:/home/build/immortalwrt/.config" \
-v "${{ github.workspace }}/x86-64/build.sh:/home/build/immortalwrt/build.sh" \
-e PROFILE=$profile \
immortalwrt/imagebuilder:x86-64-openwrt-23.05.4 /bin/bash /home/build/immortalwrt/build.sh
done
- name: Locate squashfs firmware files
id: locate_files
run: |
# 查找符合条件的固件文件
firmware_files=$(find "${{ github.workspace }}/bin" -type f -name '*squashfs-combined*.img.gz')
# 格式化路径,以避免多余的换行或空格
firmware_files=$(echo "$firmware_files" | tr '\n' ' ')
echo "Squashfs firmware files located: $firmware_files"
echo "firmware_paths=$firmware_files" >> $GITHUB_ENV
- name: Upload firmware directly
uses: actions/upload-artifact@v4
with:
name: firmware
path: ${{ env.firmware_paths }}
compression-level: 0
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