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 cc5efda
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 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,7 +10,8 @@ jobs:
version: ${{ steps.build.outputs.version }}
strategy:
matrix:
branch: [openwrt-23.05]
branch:
- openwrt-23.05
arch:
- aarch64_cortex-a53
- aarch64_cortex-a72
Expand Down Expand Up @@ -47,18 +48,22 @@ jobs:
with:
ref: 'openwrt'

- name: Prepare workflow
shell: bash
run: |
sudo 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
sudo -u buildbot echo "src-link youtubeUnblock $GITHUB_WORKSPACE" >> feeds.conf
sudo -u buildbot ./scripts/feeds update youtubeUnblock
sudo -u buildbot ./scripts/feeds install -a -p youtubeUnblock
sudo -u buildbot make defconfig
sudo -u buildbot make package/youtubeUnblock/compile V=s -j$(nproc) BUILD_LOG=1
- name: Compress build logs
if: always()
Expand Down

0 comments on commit cc5efda

Please sign in to comment.