Skip to content

Commit 0803ba1

Browse files
authored
Merge pull request #2 from nosignals/dev
Dev
2 parents 57f6c30 + 8541e24 commit 0803ba1

File tree

1 file changed

+106
-0
lines changed

1 file changed

+106
-0
lines changed

.github/workflows/dev.yml

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
#
2+
# Copyright (C) 2024 nosignals
3+
#
4+
name: Building Neko DEV
5+
6+
on:
7+
workflow_dispatch:
8+
inputs:
9+
version:
10+
description: 'Neko version'
11+
required: true
12+
default: '1.2.2-beta'
13+
type: string
14+
changelog:
15+
description: 'Changelog'
16+
required: true
17+
default: ''
18+
type: string
19+
20+
jobs:
21+
build_ipk:
22+
permissions:
23+
contents: write
24+
name: Build Neko
25+
runs-on: ubuntu-latest
26+
strategy:
27+
fail-fast: false
28+
matrix:
29+
release:
30+
- 23.05.4
31+
arch:
32+
- x86_64
33+
34+
steps:
35+
- name: Checkout Repository
36+
uses: actions/checkout@v3
37+
with:
38+
ref: dev
39+
40+
- name: Preparing Theme
41+
run: |
42+
echo ""
43+
git clone -b neko-theme https://github.com/nosignals/neko
44+
cp ./neko/theme/* ./luci-app-neko/htdocs/nekoclash/assets/theme/
45+
cp ./neko/img/* ./luci-app-neko/htdocs/nekoclash/assets/img/
46+
47+
- name: Preparing Neko
48+
run: |
49+
echo ""
50+
mkdir feeds artifacts
51+
cp -rf ./luci-app-neko ./feeds
52+
cp -rf ./mihomo ./feeds
53+
54+
- name: Building luci-app-neko
55+
uses: nosignals/gh-action-sdk@main
56+
env:
57+
ARCH: ${{ matrix.arch }}-${{ matrix.release }}
58+
ARTIFACTS_DIR: ${{ github.workspace }}/artifacts
59+
FEED_DIR: ${{ github.workspace }}/feeds
60+
PACKAGES: mihomo luci-app-neko
61+
NO_SHFMT_CHECK: 1
62+
63+
- name: Delivering Package
64+
uses: actions/upload-artifact@v3
65+
with:
66+
name: neko-${{ matrix.release }}_${{ matrix.arch }}
67+
path: ${{ github.workspace }}/artifacts/bin/packages/${{ matrix.arch }}/action/luci-app*
68+
69+
push_packages:
70+
needs: build_ipk
71+
name: Push Packages to Release
72+
permissions:
73+
contents: write # To push a branch
74+
runs-on: ubuntu-latest
75+
steps:
76+
- name: Download temporary artifact
77+
uses: actions/download-artifact@v3
78+
79+
- name: Moving artifact to releases
80+
shell: bash
81+
run: |
82+
mkdir ./release
83+
cp -rf ./neko-23.05.4_x86_64/luci-app* ./release/luci-app-neko_${{ inputs.version }}_dev_all.ipk
84+
85+
- name: Upload release asset
86+
uses: svenstaro/upload-release-action@v2
87+
with:
88+
repo_token: ${{ secrets.GITHUB_TOKEN }}
89+
file: ./release/*
90+
overwrite: true
91+
prerelease: true
92+
tag: neko-dev
93+
file_glob: true
94+
body: |
95+
# LUCI APP NEKO DEV
96+
Simple Clash TUN based Proxy
97+
### Information
98+
- Changelog :
99+
- dev build, not recomended to install
100+
- ${{ inputs.changelog }}
101+
- Default Config :
102+
- config.yaml : minimal Configs for Neko (only 1 rules) - Secret : ` sign `
103+
- nosignals.yaml : 2 rules can added (Block Host, Game) - Secret : ` telekulo `
104+
### Dependency Requirement
105+
- ` bash, kmod-tun, php, php-cgi ` (install PHP Manually before install Neko)
106+
- Openwrt 23: ` php8 php8-cgi nftables mihomo`

0 commit comments

Comments
 (0)