Skip to content

IPK Release

IPK Release #21

Workflow file for this run

name: IPK Release
on:
release:
types:
- published
jobs:
build:
name: ${{ matrix.arch }}-${{ matrix.sdk }}
runs-on: ubuntu-latest
permissions:
contents: write
strategy:
matrix:
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-a8_vfpv3
- arm_cortex-a9
- arm_cortex-a9_neon
- arm_cortex-a9_vfpv3-d16
- arm_fa526
- arm_mpcore
- arm_xscale
- i386_pentium-mmx
- i386_pentium4
- mips64_octeonplus
- mips_24kc
- mips_4kec
- mips_mips32
- mipsel_24kc
- mipsel_24kc_24kf
- mipsel_74kc
- mipsel_mips32
- x86_64
sdk:
- "22.03"
- "23.05"
steps:
- uses: actions/checkout@v4
- name: Override version number
run: |
RELEASE_TAG="${{ github.event.release.tag_name }}"
RELEASE_VERSION="${RELEASE_TAG#v}"
sed -i "s/1\.0\.0/${RELEASE_VERSION}/g" openwrt-support/rtp2httpd/Makefile configure.ac
- name: Move src to openwrt-support
run: mv openwrt-support ../ && mkdir ../openwrt-support/rtp2httpd/src && mv ./* ../openwrt-support/rtp2httpd/src && mv ../openwrt-support ./
- name: Build
uses: openwrt/gh-action-sdk@v7
env:
ARCH: ${{ matrix.arch }}-${{ matrix.sdk }}-SNAPSHOT
FEED_DIR: ${{ github.workspace }}/openwrt-support
NO_DEFAULT_FEEDS: true
NO_SHFMT_CHECK: true
PACKAGES: rtp2httpd
- name: Rename packages
run: |
cd bin/packages/${{ matrix.arch }}/action
for f in *.ipk; do
mv "$f" "${f%.ipk}_${{ matrix.sdk }}.ipk"
done
cd -
- name: Upload to release assets
run: gh release upload --repo ${{ github.repository }} ${{ github.event.release.tag_name }} bin/packages/${{ matrix.arch }}/action/*.ipk
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}