mirror of
https://github.com/caiwx86/small-packages.git
synced 2026-10-30 05:05:13 +08:00
update 2026-07-27 22:20:34
This commit is contained in:
1 parent
079ea4f182
commit
20b786ab77
6243 files changed
-2850540
No files matched your search
@@ -1,11 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
sed -i 's/git\.openwrt\.org\/project\/luci/github\.com\/openwrt\/luci/g' ./feeds.conf.default
|
||||
./scripts/feeds update luci
|
||||
./scripts/feeds install -a luci
|
||||
mv ./bin/luci-app-argone-config ./package/
|
||||
make defconfig
|
||||
make package/luci-app-argone-config/compile V=s -j$(nproc) BUILD_LOG=1
|
||||
|
||||
tar -cJf logs.tar.xz logs 2>/dev/null || true
|
||||
mv logs.tar.xz bin/ 2>/dev/null || true
|
||||
@@ -1,54 +0,0 @@
|
||||
name: Release IPK
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v*'
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
tag:
|
||||
description: 'Release tag to attach IPK (e.g. v0.9)'
|
||||
required: true
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build IPK
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Prepare package directory
|
||||
run: |
|
||||
mkdir -p bin/luci-app-argone-config
|
||||
for d in luasrc htdocs po root; do
|
||||
[ -d "./$d" ] && cp -rf "./$d" "./bin/luci-app-argone-config/"
|
||||
done
|
||||
cp Makefile ./bin/luci-app-argone-config/
|
||||
|
||||
- name: Build with OpenWrt SDK
|
||||
run: |
|
||||
docker pull openwrt/sdk
|
||||
docker run --rm -u root \
|
||||
-v "$(pwd)/bin:/home/build/openwrt/bin" \
|
||||
-v "${{ github.workspace }}/.github/workflows:/home/build/workflows" \
|
||||
openwrt/sdk \
|
||||
/bin/sh /home/build/workflows/build.sh
|
||||
|
||||
- name: Upload IPK to Release
|
||||
uses: ncipollo/release-action@v1
|
||||
with:
|
||||
tag: ${{ inputs.tag || github.ref_name }}
|
||||
artifacts: "bin/packages/x86_64/base/*argone-config*.ipk"
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
allowUpdates: true
|
||||
omitBodyDuringUpdate: true
|
||||
omitNameDuringUpdate: true
|
||||
|
||||
- name: Upload build log
|
||||
if: always()
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: build-log
|
||||
path: bin/logs.tar.xz
|
||||
if-no-files-found: ignore
|
||||
Reference in new issue
Block a user