2024-08-08 14:53:42 +00:00
|
|
|
name: build-openwrt
|
|
|
|
|
|
|
|
on:
|
2024-08-09 15:22:20 +00:00
|
|
|
workflow_dispatch:
|
2024-08-08 14:53:42 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
outputs:
|
|
|
|
version: ${{ steps.build.outputs.version }}
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
branch: [openwrt-23.05]
|
|
|
|
arch:
|
|
|
|
- aarch64_cortex-a53
|
|
|
|
- aarch64_cortex-a72
|
|
|
|
- aarch64_generic
|
|
|
|
- arm_arm1176jzf-s_vfp
|
|
|
|
- arm_arm926ej-s
|
|
|
|
- arm_cortex-a15_neon-vfpv4
|
|
|
|
- arm_cortex-a5_vfpv4
|
|
|
|
- arm_cortex-a7
|
|
|
|
- arm_cortex-a7_neon-vfpv4
|
|
|
|
- arm_cortex-a7_vfpv4
|
|
|
|
- arm_cortex-a8_vfpv3
|
|
|
|
- arm_cortex-a9
|
|
|
|
- arm_cortex-a9_neon
|
|
|
|
- arm_cortex-a9_vfpv3-d16
|
|
|
|
- arm_fa526
|
|
|
|
- arm_mpcore
|
|
|
|
- arm_xscale
|
|
|
|
- mips64_octeonplus
|
|
|
|
- mips_24kc
|
|
|
|
- mips_4kec
|
|
|
|
- mips_mips32
|
|
|
|
- mipsel_24kc
|
|
|
|
- mipsel_24kc_24kf
|
|
|
|
- mipsel_74kc
|
|
|
|
- mipsel_mips32
|
|
|
|
- x86_64
|
|
|
|
container:
|
|
|
|
image: openwrt/sdk:${{ matrix.arch }}-${{ matrix.branch }}
|
|
|
|
options: --user root
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
ref: 'openwrt'
|
|
|
|
|
|
|
|
- name: Build packages
|
|
|
|
id: build
|
|
|
|
working-directory: /builder
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
cp -va $GITHUB_WORKSPACE/youtubeUnblock package
|
|
|
|
VERSION=$(grep -Po 'PKG_VERSION:=\K.*' package/youtubeUnblock/Makefile)
|
|
|
|
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
|
|
|
sed -e 's|base.*\.git|base https://github.com/openwrt/openwrt.git|' \
|
|
|
|
-e 's|packages.*\.git|packages https://github.com/openwrt/packages.git|' -i feeds.conf.default
|
|
|
|
make defconfig
|
|
|
|
make package/youtubeUnblock/compile V=s -j$(nproc) BUILD_LOG=1
|
|
|
|
|
|
|
|
- name: Compress build logs
|
|
|
|
if: always()
|
|
|
|
env:
|
|
|
|
ARCH: ${{ matrix.arch }}
|
|
|
|
run: |
|
2024-08-09 15:22:20 +00:00
|
|
|
tar -cJvf logs-$ARCH.tar.xz /builder/logs
|
2024-08-08 14:53:42 +00:00
|
|
|
|
|
|
|
- name: Upload packages
|
|
|
|
if: steps.build.outcome == 'success'
|
|
|
|
uses: actions/upload-artifact@v4
|
|
|
|
with:
|
2024-08-09 15:22:20 +00:00
|
|
|
name: ipk-${{ matrix.arch }}
|
2024-08-08 14:53:42 +00:00
|
|
|
path: /builder/**/youtubeUnblock*.ipk
|
|
|
|
if-no-files-found: error
|
|
|
|
|
|
|
|
- name: Upload build logs
|
|
|
|
if: always()
|
|
|
|
uses: actions/upload-artifact@v4
|
|
|
|
with:
|
2024-08-09 15:22:20 +00:00
|
|
|
name: logs-${{ matrix.arch }}
|
|
|
|
path: ./**/logs-*.tar.xz
|