Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
mgqnfoqv7k2w
AutoBuildImmortalWrt
Commits
8d2f343f
"tests/vscode:/vscode.git/clone" did not exist on "065160ab91d4c61a2026c6bbba593fe0d6deb496"
Unverified
Commit
8d2f343f
authored
Dec 07, 2024
by
wukongdaily
Committed by
GitHub
Dec 07, 2024
Browse files
Create nanopi.yml
parent
3e7fbdbb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
53 additions
and
0 deletions
+53
-0
.github/workflows/nanopi.yml
.github/workflows/nanopi.yml
+53
-0
No files found.
.github/workflows/nanopi.yml
0 → 100644
View file @
8d2f343f
name
:
nanopi
on
:
workflow_dispatch
:
inputs
:
profile
:
description
:
'
Comma-separated
list
of
profiles'
required
:
true
default
:
'
friendlyarm_nanopi-r1s,friendlyarm_nanopi-r3s'
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
:
|
# 解析输入的 PROFILE 参数,将其拆分成数组
profiles=(${GITHUB_EVENT_INPUTS_PROFILE//,/ })
# 遍历所有的 profile 并传递给 Docker
for profile in "${profiles[@]}"; 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 }}/build_rockchip.sh:/home/build/immortalwrt/build.sh" \
-e PROFILE=$profile \
immortalwrt/imagebuilder:rockchip-armv8-openwrt-24.10 /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*.img.gz')
echo "Squashfs firmware files located:"
echo "$firmware_files"
echo "firmware_paths=$firmware_files" >> $GITHUB_ENV
-
name
:
Upload firmware
uses
:
actions/upload-artifact@v4
with
:
name
:
firmware
path
:
${{ env.firmware_paths }}
compression-level
:
0
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment