mirror of
https://github.com/Waujito/youtubeUnblock.git
synced 2024-12-22 14:26:11 +00:00
Update workflow
This commit is contained in:
parent
48d8f08957
commit
34345b127b
26
.github/workflows/build-openwrt.yml
vendored
26
.github/workflows/build-openwrt.yml
vendored
@ -1,7 +1,7 @@
|
|||||||
name: build-openwrt
|
name: build-openwrt
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
- push
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@ -10,7 +10,8 @@ jobs:
|
|||||||
version: ${{ steps.build.outputs.version }}
|
version: ${{ steps.build.outputs.version }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
branch: [openwrt-23.05]
|
branch:
|
||||||
|
- openwrt-23.05
|
||||||
arch:
|
arch:
|
||||||
- aarch64_cortex-a53
|
- aarch64_cortex-a53
|
||||||
- aarch64_cortex-a72
|
- aarch64_cortex-a72
|
||||||
@ -37,6 +38,7 @@ jobs:
|
|||||||
- mipsel_24kc_24kf
|
- mipsel_24kc_24kf
|
||||||
- mipsel_74kc
|
- mipsel_74kc
|
||||||
- mipsel_mips32
|
- mipsel_mips32
|
||||||
|
- ramips-mt76x8
|
||||||
- x86_64
|
- x86_64
|
||||||
container:
|
container:
|
||||||
image: openwrt/sdk:${{ matrix.arch }}-${{ matrix.branch }}
|
image: openwrt/sdk:${{ matrix.arch }}-${{ matrix.branch }}
|
||||||
@ -47,18 +49,24 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
ref: 'openwrt'
|
ref: 'openwrt'
|
||||||
|
|
||||||
|
|
||||||
|
- name: Prepare workflow
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
sed -i 's/PKG_REV:=.*$/PKG_REV:=${{ github.sha }}/;s/PKG_VERSION:=.*$/PKG_VERSION:=$(date %Y%m%d)/' youtubeUnblock/Makefile
|
||||||
|
|
||||||
- name: Build packages
|
- name: Build packages
|
||||||
id: build
|
id: build
|
||||||
working-directory: /builder
|
working-directory: /builder
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
cp -va $GITHUB_WORKSPACE/youtubeUnblock package
|
echo "src-link youtubeUnblock $GITHUB_WORKSPACE" >> feeds.conf
|
||||||
VERSION=$(grep -Po 'PKG_VERSION:=\K.*' package/youtubeUnblock/Makefile)
|
su - buildbot -c 'cat feeds.conf'
|
||||||
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
su - buildbot -c './scripts/feeds update youtubeUnblock'
|
||||||
sed -e 's|base.*\.git|base https://github.com/openwrt/openwrt.git|' \
|
su - buildbot -c './scripts/feeds install -a -p youtubeUnblock'
|
||||||
-e 's|packages.*\.git|packages https://github.com/openwrt/packages.git|' -i feeds.conf.default
|
su - buildbot -c 'make defconfig'
|
||||||
make defconfig
|
su - buildbot -c 'make package/youtubeUnblock/compile V=s BUILD_LOG=1'
|
||||||
make package/youtubeUnblock/compile V=s -j$(nproc) BUILD_LOG=1
|
|
||||||
|
|
||||||
- name: Compress build logs
|
- name: Compress build logs
|
||||||
if: always()
|
if: always()
|
||||||
|
Loading…
Reference in New Issue
Block a user