mirror of
https://github.com/Waujito/youtubeUnblock.git
synced 2026-01-27 12:40:36 +03:00
Add luci builder for apk
This commit is contained in:
31
.github/workflows/build-ci.yml
vendored
31
.github/workflows/build-ci.yml
vendored
@@ -269,8 +269,20 @@ jobs:
|
|||||||
build-openwrt-luci:
|
build-openwrt-luci:
|
||||||
needs: prepare
|
needs: prepare
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
branch:
|
||||||
|
- openwrt-23.05
|
||||||
|
- SNAPSHOT
|
||||||
|
arch:
|
||||||
|
- x86_64
|
||||||
|
include:
|
||||||
|
- branch: SNAPSHOT
|
||||||
|
package_extension: apk
|
||||||
|
- branch: openwrt-23.05
|
||||||
|
package_extension: ipk
|
||||||
container:
|
container:
|
||||||
image: openwrt/sdk:x86_64-openwrt-23.05
|
image: openwrt/sdk:${{ matrix.arch }}-${{ matrix.branch }}
|
||||||
options: --user root
|
options: --user root
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
@@ -288,6 +300,15 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
HOME=/builder ./setup.sh
|
HOME=/builder ./setup.sh
|
||||||
|
|
||||||
|
- name: Add signing key
|
||||||
|
if: matrix.package_extension == 'apk'
|
||||||
|
id: signing_key
|
||||||
|
env:
|
||||||
|
SIGNING_KEY: ${{ secrets.EC_PRIVATE_KEY }}
|
||||||
|
working-directory: /builder
|
||||||
|
run: |
|
||||||
|
([ -n "$SIGNING_KEY" ] && echo "$SIGNING_KEY" > private-key.pem) || true
|
||||||
|
|
||||||
- name: Build packages
|
- name: Build packages
|
||||||
id: build
|
id: build
|
||||||
env:
|
env:
|
||||||
@@ -302,14 +323,14 @@ jobs:
|
|||||||
./scripts/feeds install -a -p youtubeUnblock
|
./scripts/feeds install -a -p youtubeUnblock
|
||||||
make defconfig
|
make defconfig
|
||||||
make package/luci-app-youtubeUnblock/compile V=s
|
make package/luci-app-youtubeUnblock/compile V=s
|
||||||
mv $(find ./bin -type f -name 'luci-app-youtubeUnblock*.ipk') ./luci-app-youtubeUnblock-$VERSION-$RELEASE-$SHA.ipk
|
mv $(find ./bin -type f -name 'luci-app-youtubeUnblock*.${{ matrix.package_extension }}') ./luci-app-youtubeUnblock-$VERSION-$RELEASE-$SHA.${{ matrix.package_extension }}
|
||||||
|
|
||||||
- name: Upload packages
|
- name: Upload packages
|
||||||
if: steps.build.outcome == 'success'
|
if: steps.build.outcome == 'success'
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: luci-app-youtubeUnblock
|
name: luci-app-youtubeUnblock-${{ matrix.branch }}
|
||||||
path: /builder/luci-app-youtubeUnblock*.ipk
|
path: /builder/luci-app-youtubeUnblock*.${{ matrix.package_extension }}
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
|
|
||||||
build-entware:
|
build-entware:
|
||||||
@@ -387,5 +408,7 @@ jobs:
|
|||||||
title: 'Development build'
|
title: 'Development build'
|
||||||
files: |
|
files: |
|
||||||
./**/youtubeUnblock*.ipk
|
./**/youtubeUnblock*.ipk
|
||||||
|
./**/youtubeUnblock*.apk
|
||||||
./**/youtubeUnblock*.tar.gz
|
./**/youtubeUnblock*.tar.gz
|
||||||
./**/luci-app-youtubeUnblock*.ipk
|
./**/luci-app-youtubeUnblock*.ipk
|
||||||
|
./**/luci-app-youtubeUnblock*.apk
|
||||||
|
|||||||
Reference in New Issue
Block a user