Building Neko #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Copyright (C) 2024 nosignals | |
# | |
name: Building Neko | |
on: | |
workflow_dispatch: | |
inputs: | |
version: | |
description: 'Neko version' | |
required: true | |
default: '1.2.0-beta' | |
type: string | |
changelog: | |
description: 'Changelog' | |
required: true | |
default: '' | |
type: string | |
jobs: | |
build_ipk: | |
permissions: | |
contents: write | |
name: Build Neko | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
release: | |
- 23.05.4 | |
arch: | |
- x86_64 | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
with: | |
ref: main | |
- name: Preparing Theme | |
run: | | |
echo "" | |
git clone -b neko-theme https://github.com/nosignals/neko | |
cp ./neko/theme/* ./luci-app-neko/htdocs/nekoclash/assets/theme/ | |
cp ./neko/img/* ./luci-app-neko/htdocs/nekoclash/assets/img/ | |
- name: Preparing Neko | |
run: | | |
echo "" | |
mkdir feeds artifacts | |
cp -rf ./luci-app-neko ./feeds | |
cp -rf ./mihomo ./feeds | |
- name: Building luci-app-neko | |
uses: nosignals/gh-action-sdk@main | |
env: | |
ARCH: ${{ matrix.arch }}-${{ matrix.release }} | |
ARTIFACTS_DIR: ${{ github.workspace }}/artifacts | |
FEED_DIR: ${{ github.workspace }}/feeds | |
PACKAGES: mihomo luci-app-neko | |
NO_SHFMT_CHECK: 1 | |
- name: Delivering Package | |
uses: actions/upload-artifact@v3 | |
with: | |
name: neko-${{ matrix.release }}_${{ matrix.arch }} | |
path: ${{ github.workspace }}/artifacts/bin/packages/${{ matrix.arch }}/action/luci-app* | |
push_packages: | |
needs: build_ipk | |
name: Push Packages to Release | |
permissions: | |
contents: write # To push a branch | |
runs-on: ubuntu-latest | |
steps: | |
- name: Download temporary artifact | |
uses: actions/download-artifact@v3 | |
- name: Moving artifact to releases | |
shell: bash | |
run: | | |
mkdir ./release | |
cp -rf ./neko-23.05.4_x86_64/luci-app* ./release/luci-app-neko_${{ inputs.version }}_all.ipk | |
- name: Upload release asset | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: ./release/* | |
overwrite: true | |
tag: luci-app-neko_${{ inputs.version }} | |
file_glob: true | |
body: | | |
# LUCI APP NEKO ${{ inputs.version }} | |
Simple Clash TUN based Proxy | |
### Information | |
- Changelog : | |
- ${{ inputs.changelog }} | |
- Default Config : | |
- config.yaml : minimal Configs for Neko (only 1 rules) - Secret : ` sign ` | |
- nosignals.yaml : 2 rules can added (Block Host, Game) - Secret : ` telekulo ` | |
### Dependency Requirement | |
- ` bash, kmod-tun, php, php-cgi ` (install PHP Manually before install Neko) | |
- Openwrt 23: ` php8 php8-cgi nftables mihomo` |