Skip to content

Feed Packages

Feed Packages #50

Workflow file for this run

name: Feed Packages
on:
schedule:
- cron: "0 8 * * *"
workflow_dispatch:
push:
tags:
- v*
jobs:
build:
name: ${{ matrix.arch }} build
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
arch:
- arm_cortex-a5_vfpv4
- arm_cortex-a7_neon-vfpv4
- arm_cortex-a8_vfpv3
- arm_cortex-a9
- arm_cortex-a9_vfpv3-d16
- arm_cortex-a9_neon
- arm_cortex-a15_neon-vfpv4
- aarch64_cortex-a53
- aarch64_cortex-a72
- aarch64_generic
- mips_24kc
- mips_4kec
- mips_mips32
- mipsel_24kc
- mipsel_24kc_24kf
- mipsel_74kc
- mips64_octeonplus
- i386_pentium4
- x86_64
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build
uses: openwrt/gh-action-sdk@main
env:
ARCH: ${{ matrix.arch }}
FEEDNAME: mihomo
PACKAGES: luci-app-mihomo
INDEX: 1
KEY_BUILD: ${{ secrets.KEY_BUILD }}
NO_REFRESH_CHECK: true
- name: Compress
run: |
tar -c -z -f mihomo_${{ matrix.arch }}.tar.gz bin/packages/${{ matrix.arch }}/mihomo
- name: Upload
uses: actions/upload-artifact@v4
with:
name: mihomo_${{ matrix.arch }}
path: mihomo_${{ matrix.arch }}.tar.gz
feed:
needs: build
name: feed
runs-on: ubuntu-latest
steps:
- name: Download
uses: actions/download-artifact@v4
with:
merge-multiple: true
- name: Uncompress
run: |
ls mihomo_*.tar.gz | xargs -n 1 tar -x -z -f
- name: Feed
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: bin/packages
force_orphan: true
commit_message: Update Feed