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
3e3b31f3
"src/git@developer.sourcefind.cn:jerrrrry/infinicore.git" did not exist on "a5716a8cfa61e636e17d80a3fda56486ba926632"
Unverified
Commit
3e3b31f3
authored
Dec 07, 2024
by
wukongdaily
Committed by
GitHub
Dec 07, 2024
Browse files
Update test.yml
parent
87e8007b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
24 deletions
+7
-24
.github/workflows/test.yml
.github/workflows/test.yml
+7
-24
No files found.
.github/workflows/test.yml
View file @
3e3b31f3
name
:
r
elease
name
:
r
ockship-armv8
on
:
on
:
workflow_dispatch
:
workflow_dispatch
:
...
@@ -21,34 +21,17 @@ jobs:
...
@@ -21,34 +21,17 @@ jobs:
-v "${{ github.workspace }}/files:/home/build/immortalwrt/files" \
-v "${{ github.workspace }}/files:/home/build/immortalwrt/files" \
-v "${{ github.workspace }}/Makefile:/home/build/immortalwrt/target/linux/x86/Makefile" \
-v "${{ github.workspace }}/Makefile:/home/build/immortalwrt/target/linux/x86/Makefile" \
-v "${{ github.workspace }}/build.sh:/home/build/immortalwrt/build.sh" \
-v "${{ github.workspace }}/build.sh:/home/build/immortalwrt/build.sh" \
immortalwrt/imagebuilder:
x86-64
-openwrt-2
3.05.4
/bin/sh /home/build/immortalwrt/build.sh
immortalwrt/imagebuilder:
rockchip-armv8
-openwrt-2
4.10
/bin/sh /home/build/immortalwrt/build.sh
-
name
:
Locate firmware file
-
name
:
Locate firmware file
id
:
locate_file
id
:
locate_file
run
:
|
run
:
|
firmware_file=$(find "${{ github.workspace }}/bin" -name '*squashfs-combined-efi.img.gz' | head -n 1)
firmware_file=$(find "${{ github.workspace }}/bin" -name '*squashfs-combined-efi.img.gz' | head -n 1)
if [ -z "$firmware_file" ]; then
echo "Firmware file not found!" && exit 1
fi
echo "Firmware file located at $firmware_file"
echo "Firmware file located at $firmware_file"
echo "firmware_path=$firmware_file" >> $GITHUB_ENV
echo "firmware_path=$firmware_file" >> $GITHUB_ENV
-
name
:
Upload firmware
-
name
:
Create Release
uses
:
actions/upload-artifact@v4
id
:
create_release
uses
:
actions/create-release@v1
with
:
tag_name
:
build-${{ github.run_number }}
release_name
:
"
Build
#${{
github.run_number
}}"
body
:
"
Automatically
generated
firmware
build"
draft
:
false
prerelease
:
false
env
:
GITHUB_TOKEN
:
${{ secrets.GITHUB_TOKEN }}
-
name
:
Upload firmware to Release
uses
:
actions/upload-release-asset@v1
with
:
with
:
upload_url
:
${{ steps.create_release.outputs.upload_url }}
name
:
firmware
asset_path
:
${{ env.firmware_path }}
path
:
${{ env.firmware_path }}
asset_name
:
firmware-${{ github.run_number }}.img.gz
compression-level
:
0
asset_content_type
:
application/gzip
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