mirror of
https://github.com/caiwx86/small-packages.git
synced 2026-07-28 01:11:21 +08:00
47 lines
1.1 KiB
YAML
47 lines
1.1 KiB
YAML
name: Build packages
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- v1.**
|
|
|
|
jobs:
|
|
build:
|
|
name: Build ${{ matrix.arch }}
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
arch:
|
|
- aarch64_generic
|
|
- mipsel_24kc
|
|
- x86_64
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Building packages
|
|
uses: sbwml/openwrt-gh-action-sdk@main
|
|
env:
|
|
ARCH: ${{ matrix.arch }}-openwrt-24.10
|
|
FEEDNAME: packages_ci
|
|
PACKAGES: luci-app-parentcontrol
|
|
NO_REFRESH_CHECK: true
|
|
|
|
- name: Upload artifacts
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: ${{ matrix.arch }}
|
|
path: bin/packages/${{ matrix.arch }}/packages_ci/*.ipk
|
|
|
|
- name: Upload packages
|
|
uses: ncipollo/release-action@v1
|
|
with:
|
|
name: ${{ github.ref_name }}
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
allowUpdates: true
|
|
replacesArtifacts: true
|
|
artifacts: "bin/packages/${{ matrix.arch }}/packages_ci/*.ipk"
|