Skip to content

Commit

Permalink
Update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Waujito committed Aug 9, 2024
1 parent 48d8f08 commit 24d31f0
Showing 1 changed file with 39 additions and 34 deletions.
73 changes: 39 additions & 34 deletions .github/workflows/build-openwrt.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: build-openwrt

on:
workflow_dispatch:
- push

jobs:
build:
Expand All @@ -10,34 +10,35 @@ jobs:
version: ${{ steps.build.outputs.version }}
strategy:
matrix:
branch: [openwrt-23.05]
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
#- 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
Expand All @@ -47,18 +48,22 @@ jobs:
with:
ref: 'openwrt'

- name: Prepare workflow
shell: bash
run: |
sed -i 's/PKG_REV:=.*$/PKG_REV:=${{ github.sha }}/;s/PKG_RELEASE:=.*$/PKG_RELEASE:=${{ github.event.repository.updated_at}}/' youtubeUnblock/Makefile
- 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
su - buildbot -c "echo "src-link youtubeUnblock $GITHUB_WORKSPACE" >> 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 -j$(nproc) BUILD_LOG=1"
- name: Compress build logs
if: always()
Expand Down

0 comments on commit 24d31f0

Please sign in to comment.