Build packages / CI (push) Blocked by required conditions
Build packages / Version (push) Waiting to run
CI / Web (format, types, tests, bundles) (push) Blocked by required conditions
CI / ShellCheck (push) Blocked by required conditions
CI / ucode static checks (push) Blocked by required conditions
CI / ucode compiles and tests pass (OpenWrt 24.10) (push) Blocked by required conditions
CI / ucode compiles and tests pass (OpenWrt 25.12) (push) Blocked by required conditions
- The personal page loads faster and costs the router less: its script and styles come compressed, stay in the browser until the next update, and the icon comes with the page instead of a request of its own - The page uses the system's own font (SF Pro on Apple devices, Segoe UI on Windows, Roboto on Android) instead of downloading one - The top of the page shows the server's name alone, so it fits on a phone - Text can be selected only where it is there to be copied (addresses, file names, the configuration), with the name field's own selection: a soft highlight with handles that glides after the pointer - Sheets scroll without a scrollbar - Red buttons (Remove) light up under the pointer, as the others do - Demo: "Demo" and GitHub are one button; on a phone it floats at the bottom of the screen, and switching scenarios no longer makes the edge fades jump
138 lines
4.8 KiB
YAML
138 lines
4.8 KiB
YAML
name: Build packages
|
|
|
|
# A tag vX.Y.Z builds luci-app-dawnline and its translation packages
|
|
# (luci-i18n-dawnline-<lang>) as .ipk (OpenWrt 24.10, opkg) and .apk (OpenWrt
|
|
# 25.12, apk) with the OpenWrt SDK and publishes a GitHub release with the
|
|
# packages and sha256sums.txt, the files install.sh and the in-app updater
|
|
# download. The release notes list what changed since the previous tag, from the
|
|
# commits (scripts/release-notes.sh). Run it by hand to get the packages as
|
|
# workflow artifacts only.
|
|
on:
|
|
push:
|
|
tags: ['v*']
|
|
workflow_dispatch:
|
|
|
|
# Read-only by default; only the release job may write (publish the release).
|
|
# Everything that runs here is pinned to a digest or a commit: the packages
|
|
# it publishes are installed as root on every router with automatic updates
|
|
# on, so a re-pointed tag must not be able to change what gets built.
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
# The same checks as on main (ci.yml), on the tag itself: nothing is built or
|
|
# published until they pass.
|
|
ci:
|
|
name: CI
|
|
uses: ./.github/workflows/ci.yml
|
|
|
|
version:
|
|
name: Version
|
|
runs-on: ubuntu-24.04
|
|
outputs:
|
|
version: ${{ steps.version.outputs.version }}
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Read and check the version
|
|
id: version
|
|
run: |
|
|
v="$(sed -n 's/^PKG_VERSION:=//p' package/luci-app-dawnline/Makefile)"
|
|
grep -q "^export const VERSION = '$v';" package/luci-app-dawnline/root/usr/share/ucode/dawnline/util.uc ||
|
|
{ echo "::error::util.uc VERSION differs from the Makefile ($v)"; exit 1; }
|
|
grep -q "\"version\": \"$v\"" web/package.json ||
|
|
{ echo "::error::web/package.json version differs from the Makefile ($v)"; exit 1; }
|
|
if [ "${GITHUB_REF_TYPE}" = tag ] && [ "${GITHUB_REF_NAME}" != "v$v" ]; then
|
|
echo "::error::Tag ${GITHUB_REF_NAME} does not match the package version v$v"
|
|
exit 1
|
|
fi
|
|
echo "version=$v" >> "$GITHUB_OUTPUT"
|
|
|
|
build:
|
|
name: Build ${{ matrix.type }}
|
|
runs-on: ubuntu-24.04
|
|
needs: [version, ci]
|
|
strategy:
|
|
fail-fast: true
|
|
matrix:
|
|
include:
|
|
- { type: ipk, sdk: 'itdoginfo/openwrt-sdk-ipk:24.10.6@sha256:a6bd28c380b251ebdb1d6d5f83e55ecb0a3c1808b5a8f4841424abc8019a903f' }
|
|
- { type: apk, sdk: 'itdoginfo/openwrt-sdk-apk:25.12.3@sha256:6d832008ddd1b8ec4edc84f5e6e0bf22a13ba2d6888083a8e69fa26d752c276f' }
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
|
|
with:
|
|
node-version: '26'
|
|
cache: npm
|
|
cache-dependency-path: web/package-lock.json
|
|
|
|
- name: Build the web bundles
|
|
working-directory: web
|
|
run: |
|
|
npm ci
|
|
npm run --silent build
|
|
|
|
- name: Build the ${{ matrix.type }} with the OpenWrt SDK
|
|
env:
|
|
IPK_SDK: ${{ matrix.sdk }}
|
|
APK_SDK: ${{ matrix.sdk }}
|
|
run: scripts/build-packages.sh ${{ matrix.type }}
|
|
|
|
- name: Upload
|
|
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
|
with:
|
|
name: package-${{ matrix.type }}
|
|
# The app and its translation packages (luci-i18n-dawnline-<lang>).
|
|
path: dist/luci-*-${{ needs.version.outputs.version }}.${{ matrix.type }}
|
|
if-no-files-found: error
|
|
retention-days: 7
|
|
|
|
release:
|
|
name: Release
|
|
runs-on: ubuntu-24.04
|
|
needs: [version, build]
|
|
if: github.ref_type == 'tag'
|
|
permissions:
|
|
contents: write
|
|
steps:
|
|
# The whole history and the tags: the notes list the commits since the previous tag.
|
|
- name: Checkout
|
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
persist-credentials: false
|
|
fetch-depth: 0
|
|
|
|
- name: Release notes
|
|
run: |
|
|
sh scripts/release-notes.sh "${GITHUB_REF_NAME}" "${GITHUB_REPOSITORY}" > notes.md
|
|
cat notes.md
|
|
|
|
- name: Download packages
|
|
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
|
with:
|
|
pattern: package-*
|
|
path: release
|
|
merge-multiple: true
|
|
|
|
- name: Checksums
|
|
working-directory: release
|
|
run: |
|
|
sha256sum luci-* > sha256sums.txt
|
|
cat sha256sums.txt
|
|
|
|
- name: Publish the release
|
|
uses: softprops/action-gh-release@efb35369e0ad2afab669f228072c1b0d510eae64 # v3.0.3
|
|
with:
|
|
name: Dawnline ${{ github.ref_name }}
|
|
tag_name: ${{ github.ref_name }}
|
|
files: release/*
|
|
body_path: notes.md
|