Skip to content

Commit e55d4b4

Browse files
committed
delj1900full/diySH/files
1 parent 735a3d5 commit e55d4b4

File tree

4 files changed

+36
-70
lines changed

4 files changed

+36
-70
lines changed

.github/workflows/J1900_full.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,18 @@
1111
name: j1900_x86 OpenWrt
1212

1313
on:
14-
push:
15-
branches:
16-
- main
14+
# push:
15+
# branches:
16+
# - main
1717
repository_dispatch:
1818
workflow_dispatch:
1919
inputs:
2020
ssh:
2121
description: 'SSH connection to Actions'
2222
required: true
2323
default: 'false'
24-
schedule:
25-
- cron: 0 19 * * *
24+
# schedule:
25+
# - cron: 0 19 * * *
2626
# watch:
2727
# types: started
2828

.github/workflows/J1900_immortal.yml

Lines changed: 31 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ env:
3131
REPO_BRANCH: master
3232
FEEDS_CONF: feeds.conf.default
3333
CONFIG_FILE: config/j1900imt.config
34-
DIY_P1_SH: diyJ1900imt-part1.sh
35-
DIY_P2_SH: diyJ1900imt-part2.sh
34+
# DIY_P1_SH: diyJ1900imt-part1.sh
35+
# DIY_P2_SH: diyJ1900imt-part2.sh
3636
UPLOAD_BIN_DIR: true
3737
UPLOAD_FIRMWARE: true
3838
UPLOAD_COWTRANSFER: false
@@ -76,9 +76,10 @@ jobs:
7676
- name: Load custom feeds
7777
run: |
7878
[ -e $FEEDS_CONF ] && mv $FEEDS_CONF openwrt/feeds.conf.default
79-
chmod +x $DIY_P1_SH
79+
#chmod +x $DIY_P1_SH
8080
cd openwrt
81-
$GITHUB_WORKSPACE/$DIY_P1_SH
81+
$GITHUB_WORKSPACE/$DIY_P1_SH
82+
#echo 'src-git kenzok8_small_package https://github.com/kenzok8/small-package' >>feeds.conf.default
8283
git clone https://github.com/BROBIRD/openwrt-r8168 ./package/r8168
8384
8485
- name: Update feeds
@@ -100,15 +101,32 @@ jobs:
100101
run: |
101102
[ -e files ] && mv files openwrt/files
102103
[ -e $CONFIG_FILE ] && mv $CONFIG_FILE openwrt/.config
103-
chmod +x $DIY_P2_SH
104+
#chmod +x $DIY_P2_SH
104105
cd openwrt
105-
$GITHUB_WORKSPACE/$DIY_P2_SH
106-
curl -fsSL git.io/file-transfer | sh
107-
./transfer cow --block 2621440 -s -p 64 --no-progress .config 2>&1 | tee cowtransfer.log
108-
echo "::warning file=cowtransfer.com::$(cat cowtransfer.log | grep https)"
109-
echo "::set-output name=url::$(cat cowtransfer.log | grep https | cut -f3 -d" ")"
110106
107+
#$GITHUB_WORKSPACE/$DIY_P2_SH
108+
# Modify default IP
109+
#sed -i 's/192.168.1.1/192.168.30.3/g' package/base-files/files/bin/config_generate
110+
sed -i 's/192.168.1.1/192.168.30.3/g' .config
111+
sed -i 's/192.168.30.255/192.168.30.255/g' .config
112+
# Modify hostname
113+
# sed -i 's/OpenWrt/OpenWrt-Calmact/g' package/base-files/files/bin/config_generate
114+
115+
# Add kernel build user
116+
# [ -z $(grep "CONFIG_KERNEL_BUILD_USER=" .config) ] &&
117+
# echo 'CONFIG_KERNEL_BUILD_USER="Calmact"' >>.config ||
118+
# sed -i 's@\(CONFIG_KERNEL_BUILD_USER=\).*@\1$"Calmact"@' .config
111119
120+
# Add kernel build domain
121+
# [ -z $(grep "CONFIG_KERNEL_BUILD_DOMAIN=" .config) ] &&
122+
# echo 'CONFIG_KERNEL_BUILD_DOMAIN="GitHub Actions"' >>.config ||
123+
# sed -i 's@\(CONFIG_KERNEL_BUILD_DOMAIN=\).*@\1$"GitHub Actions"@' .config
124+
125+
126+
curl -fsSL git.io/file-transfer | sh
127+
./transfer wet -s -p 16 --no-progress .config 2>&1 | tee wetransfer.log
128+
echo "::warning file=wetransfer.com::$(cat wetransfer.log | grep https)"
129+
echo "::set-output name=url::$(cat wetransfer.log | grep https | cut -f3 -d" ")"
112130
113131
- name: SSH connection to Actions
114132
uses: P3TERX/[email protected]
@@ -126,6 +144,7 @@ jobs:
126144
make check | tee check.log
127145
find dl -size -1024c -exec ls -l {} \;
128146
find dl -size -1024c -exec rm -f {} \;
147+
129148
- name: Compile the firmware
130149
id: compile
131150
run: |
@@ -141,11 +160,11 @@ jobs:
141160
run: |
142161
cd openwrt
143162
[ -e .config ] && mv .config ./bin/targets/x86/64/.config
163+
[ -e build_j8.log ] && mv build_j8.log ./bin/targets/x86/64/build_j8.log
164+
[ -e build_j2.log ] && mv build_j2.log ./bin/targets/x86/64/build_j2.log
144165
[ -e feeds.conf.default ] && mv feeds.conf.default ./bin/targets/x86/64/feeds.conf.default
145166
[ -e download.log ] && mv download.log ./bin/targets/x86/64/download.log
146167
[ -e check.log ] && mv check.log ./bin/targets/x86/64/check.log
147-
[ -e build_j8.log ] && mv build_j8.log ./bin/targets/x86/64/build_j8.log
148-
[ -e build_j2.log ] && mv build_j2.log ./bin/targets/x86/64/build_j2.log
149168
150169
- name: Check space usage
151170
if: (!cancelled())

files/etc/config/network

Lines changed: 0 additions & 35 deletions
This file was deleted.

files/etc/config/system

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)