Skip to content
This repository has been archived by the owner on Mar 7, 2024. It is now read-only.

Fix actions release (#3) #8

Fix actions release (#3)

Fix actions release (#3) #8

Workflow file for this run

name: Build firmware
on:
push:
branches: [ 'main' ]
jobs:
build-openwrt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install required packages
run: |
sudo apt install -y \
bison \
build-essential \
clang \
flex \
g++ \
gawk \
gcc-multilib \
g++-multilib \
gettext \
git \
libncurses-dev \
libssl-dev \
python3-distutils \
rsync \
unzip \
zlib1g-dev \
file \
wget
- uses: actions/checkout@v4
with:
repository: 'openwrt/openwrt'
ref: 'v23.05.2'
path: openwrt
- name: Patch
continue-on-error: true
run: |
wget https://patch-diff.githubusercontent.com/raw/openwrt/openwrt/pull/3661.patch
patch -p1 < 3661.patch
sed -i '47a \ elecom,wab-i1750-ps|\\' ./target/linux/ath79/generic/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom
sed -i '75a \ elecom,wab-i1750-ps|\\' ./target/linux/ath79/generic/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
working-directory: openwrt
- name: Install feeds
run: |
./scripts/feeds update -a
./scripts/feeds install -a
working-directory: openwrt
- name: Build OpenWrt
run: |
cp $GITHUB_WORKSPACE/.config .
make -j$(nproc)
working-directory: openwrt
- name: Upload build result
uses: actions/upload-artifact@v4
with:
name: openwrt-ath79-generic-elecom_wab-i1750-ps
path: |
openwrt/bin/targets/ath79/generic/config.buildinfo
openwrt/bin/targets/ath79/generic/feeds.buildinfo
openwrt/bin/targets/ath79/generic/openwrt-ath79-generic-elecom_wab-i1750-ps-initramfs-kernel.bin
openwrt/bin/targets/ath79/generic/openwrt-ath79-generic-elecom_wab-i1750-ps-squashfs-factory.bin
openwrt/bin/targets/ath79/generic/openwrt-ath79-generic-elecom_wab-i1750-ps-squashfs-sysupgrade.bin
openwrt/bin/targets/ath79/generic/openwrt-ath79-generic-elecom_wab-i1750-ps.manifest
openwrt/bin/targets/ath79/generic/profiles.json
openwrt/bin/targets/ath79/generic/sha256sums
openwrt/bin/targets/ath79/generic/version.buildinfo
- name: Bump version and push tag
id: tag_version
uses: mathieudutour/github-tag-action@v6.1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
default_bump: "minor"
- name: Release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ steps.tag_version.outputs.new_tag }}
body_path: openwrt/bin/targets/ath79/generic/sha256sums
prerelease: true
files: |
openwrt/bin/targets/ath79/generic/config.buildinfo
openwrt/bin/targets/ath79/generic/feeds.buildinfo
openwrt/bin/targets/ath79/generic/openwrt-ath79-generic-elecom_wab-i1750-ps-initramfs-kernel.bin
openwrt/bin/targets/ath79/generic/openwrt-ath79-generic-elecom_wab-i1750-ps-squashfs-factory.bin
openwrt/bin/targets/ath79/generic/openwrt-ath79-generic-elecom_wab-i1750-ps-squashfs-sysupgrade.bin
openwrt/bin/targets/ath79/generic/openwrt-ath79-generic-elecom_wab-i1750-ps.manifest
openwrt/bin/targets/ath79/generic/profiles.json
openwrt/bin/targets/ath79/generic/sha256sums
openwrt/bin/targets/ath79/generic/version.buildinfo