2024-08-09 23:21:18 +00:00
|
|
|
name: OpenWRT Workflow
|
2024-08-08 14:53:42 +00:00
|
|
|
|
|
|
|
on:
|
2024-08-10 08:42:48 +00:00
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
2024-08-08 14:53:42 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
outputs:
|
|
|
|
version: ${{ steps.build.outputs.version }}
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2024-08-09 22:08:00 +00:00
|
|
|
branch:
|
|
|
|
- openwrt-23.05
|
2024-08-08 14:53:42 +00:00
|
|
|
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
|
2024-08-10 15:40:24 +00:00
|
|
|
- armsr-armv8
|
|
|
|
- armsr-armv7
|
2024-08-08 14:53:42 +00:00
|
|
|
- mips64_octeonplus
|
|
|
|
- mips_24kc
|
|
|
|
- mips_4kec
|
|
|
|
- mips_mips32
|
|
|
|
- mipsel_24kc
|
|
|
|
- mipsel_24kc_24kf
|
|
|
|
- mipsel_74kc
|
|
|
|
- mipsel_mips32
|
2024-08-09 22:08:00 +00:00
|
|
|
- ramips-mt76x8
|
2024-08-10 23:14:10 +00:00
|
|
|
- ramips-mt7621
|
2024-08-08 14:53:42 +00:00
|
|
|
- x86_64
|
|
|
|
container:
|
|
|
|
image: openwrt/sdk:${{ matrix.arch }}-${{ matrix.branch }}
|
|
|
|
options: --user root
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
ref: 'openwrt'
|
|
|
|
|
2024-08-09 22:08:00 +00:00
|
|
|
- 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
|
|
|
|
|
2024-08-08 14:53:42 +00:00
|
|
|
- name: Build packages
|
|
|
|
id: build
|
|
|
|
working-directory: /builder
|
|
|
|
shell: bash
|
|
|
|
run: |
|
2024-08-09 22:08:00 +00:00
|
|
|
echo "src-link youtubeUnblock $GITHUB_WORKSPACE" >> feeds.conf
|
|
|
|
su - buildbot -c 'cat feeds.conf'
|
|
|
|
su - buildbot -c './scripts/feeds update youtubeUnblock'
|
|
|
|
su - buildbot -c './scripts/feeds install -a -p youtubeUnblock'
|
|
|
|
su - buildbot -c 'make defconfig'
|
|
|
|
su - buildbot -c 'make package/youtubeUnblock/compile V=s BUILD_LOG=1'
|
|
|
|
|
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 23:21:18 +00:00
|
|
|
name: ${{ matrix.arch }}-${{ matrix.branch }}
|
2024-08-08 14:53:42 +00:00
|
|
|
path: /builder/**/youtubeUnblock*.ipk
|
|
|
|
if-no-files-found: error
|