31
31
REPO_BRANCH : master
32
32
FEEDS_CONF : feeds.conf.default
33
33
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
36
36
UPLOAD_BIN_DIR : true
37
37
UPLOAD_FIRMWARE : true
38
38
UPLOAD_COWTRANSFER : false
76
76
- name : Load custom feeds
77
77
run : |
78
78
[ -e $FEEDS_CONF ] && mv $FEEDS_CONF openwrt/feeds.conf.default
79
- chmod +x $DIY_P1_SH
79
+ # chmod +x $DIY_P1_SH
80
80
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
82
83
git clone https://github.com/BROBIRD/openwrt-r8168 ./package/r8168
83
84
84
85
- name : Update feeds
@@ -100,15 +101,32 @@ jobs:
100
101
run : |
101
102
[ -e files ] && mv files openwrt/files
102
103
[ -e $CONFIG_FILE ] && mv $CONFIG_FILE openwrt/.config
103
- chmod +x $DIY_P2_SH
104
+ # chmod +x $DIY_P2_SH
104
105
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" ")"
110
106
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
111
119
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" ")"
112
130
113
131
- name : SSH connection to Actions
114
132
@@ -126,6 +144,7 @@ jobs:
126
144
make check | tee check.log
127
145
find dl -size -1024c -exec ls -l {} \;
128
146
find dl -size -1024c -exec rm -f {} \;
147
+
129
148
- name : Compile the firmware
130
149
id : compile
131
150
run : |
@@ -141,11 +160,11 @@ jobs:
141
160
run : |
142
161
cd openwrt
143
162
[ -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
144
165
[ -e feeds.conf.default ] && mv feeds.conf.default ./bin/targets/x86/64/feeds.conf.default
145
166
[ -e download.log ] && mv download.log ./bin/targets/x86/64/download.log
146
167
[ -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
149
168
150
169
- name : Check space usage
151
170
if : (!cancelled())
0 commit comments