Entware Workflow #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: OpenWRT Workflow | |
on: | |
- push | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
outputs: | |
version: ${{ steps.build.outputs.version }} | |
strategy: | |
matrix: | |
arch: | |
- mipsel-3.4 | |
container: | |
image: openwrt/sdk:${{ matrix.arch }}-${{ matrix.branch }} | |
options: --user root | |
steps: | |
- name: Docker container | |
working-directory: / | |
run: | | |
git clone https://github.com/Entware/docker.git | |
docker build docker --pull --tag builder | |
mkdir /entware_home | |
docker run -it --mount type=bind,source=/entware_home,target=/home/me -w /home/me --name builder builder git clone https://github.com/Entware/Entware.git | |
docker run -it --mount type=bind,source=/entware_home,target=/home/me -w /home/me/Entware --name builder builder make package/symlinks | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
ref: 'openwrt' | |
# - name | |
- 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 | |
id: build | |
working-directory: /builder | |
shell: bash | |
run: | | |
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' | |
- name: Upload packages | |
if: steps.build.outcome == 'success' | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ matrix.arch }}-${{ matrix.branch }} | |
path: /builder/**/youtubeUnblock*.ipk | |
if-no-files-found: error |