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

Fix checkout, Add Prometheus exporter packages (#9) #17

Fix checkout, Add Prometheus exporter packages (#9)

Fix checkout, Add Prometheus exporter packages (#9) #17

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: 'b18edb1bfa34420fde1404d9d1e619c889557154'
path: 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
if: github.ref == 'refs/heads/main'
id: tag_version
uses: mathieudutour/github-tag-action@v6.1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
default_bump: "minor"
- name: Release
if: github.ref == 'refs/heads/main'
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